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