Skip to content

Commit

Permalink
fix: check for typeddict before class or subclass checks which fail
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Mar 28, 2024
1 parent 7e8eed7 commit b0bf9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlt/common/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def get_all_types_of_class_in_union(hint: Type[Any], cls: Type[TAny]) -> List[Ty
return [
t
for t in get_args(hint)
if inspect.isclass(t) and (issubclass(t, cls) or issubclass(cls, t))
if not is_typeddict(t) and inspect.isclass(t) and (issubclass(t, cls) or issubclass(cls, t))
]


Expand Down

0 comments on commit b0bf9e0

Please sign in to comment.