From 9bd1fab46e71031141c858740c018b0f981af2e6 Mon Sep 17 00:00:00 2001 From: Ghulam Mustafa Majal Date: Mon, 23 Sep 2024 12:31:07 +0200 Subject: [PATCH] Refactor code to comply with Black. --- qualle/interface/config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qualle/interface/config.py b/qualle/interface/config.py index 0b1cad3..ac48104 100644 --- a/qualle/interface/config.py +++ b/qualle/interface/config.py @@ -29,10 +29,11 @@ # appended in pydantic v2 and it is being removed in the code block given below. AnyUrlAdapter = TypeAdapter(AnyUrl) -HttpUrlStr = Annotated[str, - PlainValidator(lambda x: AnyUrlAdapter.validate_strings(x)), - AfterValidator(lambda x: str(x).rstrip("/")), - ] +HttpUrlStr = Annotated[ + str, + PlainValidator(lambda x: AnyUrlAdapter.validate_strings(x)), + AfterValidator(lambda x: str(x).rstrip("/")), +] FileOrDirPath = Union[FilePath, DirectoryPath]