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 authored Apr 1, 2024
1 parent 7e8eed7 commit dbb5a07
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 dbb5a07

Please sign in to comment.