Skip to content

Commit

Permalink
Refactor code to comply with Black.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghulam Mustafa Majal committed Sep 23, 2024
1 parent 448c5b9 commit 9bd1fab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions qualle/interface/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9bd1fab

Please sign in to comment.