Skip to content

Commit

Permalink
Fix Python3.9 tests
Browse files Browse the repository at this point in the history
Signed-off-by: Erik-Cristian Seulean <eseulean@bloomberg.net>
  • Loading branch information
erikseulean authored and gaborbernat committed Jul 23, 2020
1 parent 63eb7d6 commit 37cd917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/attrs_strict/_type_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _handle_callable(attribute, callable_, expected_type):
param.annotation for param in _signature.parameters.values()
]
callable_args.append(_signature.return_annotation)
if not expected_type.__args__: # type: ignore
if not getattr(expected_type, "__args__", None): # type: ignore
return # No annotations specified on type, matches all Callables

for callable_arg, expected_arg in zip_longest(
Expand Down
2 changes: 1 addition & 1 deletion src/attrs_strict/_version.pyi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ : str= ...
__version__: str = ...

0 comments on commit 37cd917

Please sign in to comment.