Skip to content

Commit

Permalink
Merge pull request #282 from reagento/fix/with_parent_pyright
Browse files Browse the repository at this point in the history
fix WithParents hint
  • Loading branch information
Tishka17 authored Oct 20, 2024
2 parents d19a10f + c9056ae commit b8ab6d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dishka/entities/with_parents.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def _create_type(


if TYPE_CHECKING:
from typing import Union as WithParents
T = TypeVar("T")
WithParents: TypeAlias = T | T # noqa: PYI016
else:
class WithParents:
def __class_getitem__(cls, item: TypeHint) -> TypeHint:
Expand Down

0 comments on commit b8ab6d1

Please sign in to comment.