Skip to content

Commit

Permalink
update feud.typing pydantic types
Browse files Browse the repository at this point in the history
  • Loading branch information
eonu committed Sep 23, 2024
1 parent fb9164d commit 61faacf
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions feud/typing/pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,24 @@

__all__.extend(types)

if version >= packaging.version.parse("2.6.0"):
types: list[str] = ["NatsDsn"]

__all__.extend(types)

if version >= packaging.version.parse("2.7.0"):
types: list[str] = ["ClickHouseDsn"]

__all__.extend(types)

if version >= packaging.version.parse("2.7.1"):
types: list[str] = ["FtpUrl", "WebsocketUrl", "AnyWebsocketUrl"]

__all__.extend(types)

if version >= packaging.version.parse("2.9.0"):
types: list[str] = ["SnowflakeDsn"]

__all__.extend(types)

globals().update({attr: getattr(pydantic, attr) for attr in __all__})

0 comments on commit 61faacf

Please sign in to comment.