Skip to content

Commit 53c6951

Browse files
committed
typecheck: Python 3.7 compatibility, yay!
1 parent 33c5732 commit 53c6951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpythonic/typecheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def get_args(tp):
222222
if not isinstance(value, tuple):
223223
return False
224224
# bare `typing.Tuple`, no restrictions on length or element type.
225-
if T.__args__ is None:
225+
if not T.__args__:
226226
return True
227227
# homogeneous element type, arbitrary length
228228
if len(T.__args__) == 2 and T.__args__[1] is Ellipsis:

0 commit comments

Comments
 (0)