Skip to content

Commit 9f57ce7

Browse files
committed
fix is_subtype in pipelines.py
1 parent 9168534 commit 9f57ce7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

papercast/pipelines.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ def is_subtype(cls, type1, type2):
9090
else:
9191
return False
9292
elif get_origin(type1) is not None and get_origin(type2) is not None:
93-
if len(get_args(type1)) == len(get_args(type2)):
93+
if len(get_args(type1)) == len(get_args(type2)) and get_origin(
94+
type1
95+
) == get_origin(type2):
9496
return all(
9597
cls.is_subtype(arg1, arg2)
9698
for arg1, arg2 in zip(get_args(type1), get_args(type2))

0 commit comments

Comments
 (0)