Skip to content

Commit

Permalink
feat(litestar-org#579): solve python 3.8 compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
giulioindev committed Aug 20, 2024
1 parent bbec348 commit d625a5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polyfactory/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Callable,
ClassVar,
Literal,
Type,
TypeVar,
Union,
cast,
Expand Down Expand Up @@ -79,7 +80,7 @@ def __call__(self, factory: type[T]) -> Callable[[], type[T]]:

def _factory_fixture() -> type[T]:
"""The wrapped factory"""
return cast(type[T], factory)
return cast(Type[T], factory)

_factory_fixture.__doc__ = factory.__doc__
marker = fixture_register(_factory_fixture)
Expand Down

0 comments on commit d625a5a

Please sign in to comment.