Skip to content

Commit

Permalink
Merge branch 'dev' into fix-invalid-type-hints
Browse files Browse the repository at this point in the history
  • Loading branch information
eonu committed Sep 23, 2024
2 parents 2edfe39 + 506e9b4 commit a968590
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 a968590

Please sign in to comment.