Skip to content

Commit 3b0c052

Browse files
committed
removed anyurllegacy unused
1 parent 9d851f8 commit 3b0c052

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
from typing import Annotated, TypeAlias
22

3-
from pydantic import AfterValidator, AnyHttpUrl, AnyUrl, HttpUrl
3+
from pydantic import AfterValidator, AnyHttpUrl, HttpUrl
44
from pydantic_core import Url
55

66

77
def _strip_last_slash(url: Url) -> str:
88
return f"{url}".rstrip("/")
99

1010

11-
AnyUrlLegacy: TypeAlias = Annotated[
12-
AnyUrl,
13-
AfterValidator(_strip_last_slash),
14-
]
15-
1611
AnyHttpUrlLegacy: TypeAlias = Annotated[
1712
AnyHttpUrl,
1813
AfterValidator(_strip_last_slash),

0 commit comments

Comments
 (0)