Skip to content

Commit

Permalink
fix mistake in parametrized type hint checker
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreglaser committed Apr 28, 2020
1 parent 96c1d2f commit 7996513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudpickle/cloudpickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def _is_parametrized_type_hint(obj):

# typing.Union/Tuple for old Python 3.5
is_union = getattr(obj, '__union_params__', None) is not None
is_tuple = getattr(obj, '__tuple_params__', None)
is_tuple = getattr(obj, '__tuple_params__', None) is not None
is_callable = (
getattr(obj, '__result__', None) is not None and
getattr(obj, '__args__', None) is not None
Expand Down

0 comments on commit 7996513

Please sign in to comment.