remove weird guy
This commit is contained in:
parent
5396f80604
commit
5537eb1121
@ -1635,8 +1635,6 @@ def is_tuple_type(t: GenericType) -> bool:
|
|||||||
Returns:
|
Returns:
|
||||||
Whether the type is a tuple type.
|
Whether the type is a tuple type.
|
||||||
"""
|
"""
|
||||||
if inspect.isclass(t):
|
|
||||||
return issubclass(t, tuple)
|
|
||||||
return get_origin(t) is tuple
|
return get_origin(t) is tuple
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user