Skip to content

Commit ffd0adc

Browse files
fix type
1 parent 890583b commit ffd0adc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/common-library/src/common_library/pydantic_networks_extension.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ def _strip_last_slash(url: str) -> str:
88

99

1010
AnyUrlLegacy: TypeAlias = Annotated[
11-
str,
1211
AnyUrl,
12+
AfterValidator(str),
1313
AfterValidator(_strip_last_slash),
1414
]
1515

1616
AnyHttpUrlLegacy: TypeAlias = Annotated[
17-
str,
1817
AnyHttpUrl,
18+
AfterValidator(str),
1919
AfterValidator(_strip_last_slash),
2020
]
2121

2222

2323
HttpUrlLegacy: TypeAlias = Annotated[
24-
str,
2524
HttpUrl,
25+
AfterValidator(str),
2626
AfterValidator(_strip_last_slash),
2727
]

0 commit comments

Comments
 (0)