We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33c5732 commit 53c6951Copy full SHA for 53c6951
unpythonic/typecheck.py
@@ -222,7 +222,7 @@ def get_args(tp):
222
if not isinstance(value, tuple):
223
return False
224
# bare `typing.Tuple`, no restrictions on length or element type.
225
- if T.__args__ is None:
+ if not T.__args__:
226
return True
227
# homogeneous element type, arbitrary length
228
if len(T.__args__) == 2 and T.__args__[1] is Ellipsis:
0 commit comments