Skip to content

Commit

Permalink
fix: fix 4.12.0 typing extensions error with pydantic (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik authored May 25, 2024
1 parent a0a19af commit a936df9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fast_depends/__about__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""FastDepends - extracted and cleared from HTTP domain FastAPI Dependency Injection System"""

__version__ = "2.4.2"
__version__ = "2.4.3"
2 changes: 1 addition & 1 deletion fast_depends/core/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
Sequence,
Tuple,
Type,
TypeVar,
Union,
)

from typing_extensions import (
Annotated,
ParamSpec,
TypeVar,
get_args,
get_origin,
)
Expand Down
3 changes: 2 additions & 1 deletion fast_depends/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
Sequence,
Tuple,
Type,
TypeVar,
Union,
)

import anyio
from typing_extensions import ParamSpec, TypeVar
from typing_extensions import ParamSpec

from fast_depends._compat import BaseModel, ExceptionGroup, get_aliases
from fast_depends.library import CustomField
Expand Down
3 changes: 2 additions & 1 deletion fast_depends/use.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
Iterator,
Optional,
Sequence,
TypeVar,
Union,
cast,
overload,
)

from typing_extensions import ParamSpec, Protocol, TypeVar
from typing_extensions import ParamSpec, Protocol

from fast_depends._compat import ConfigDict
from fast_depends.core import CallModel, build_call_model
Expand Down
2 changes: 1 addition & 1 deletion fast_depends/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
ForwardRef,
List,
Tuple,
TypeVar,
Union,
cast,
)
Expand All @@ -22,7 +23,6 @@
from typing_extensions import (
Annotated,
ParamSpec,
TypeVar,
get_args,
get_origin,
)
Expand Down

0 comments on commit a936df9

Please sign in to comment.