Skip to content

Commit

Permalink
updates for typeguard 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sponge-Bas committed May 6, 2023
1 parent 2bb5c53 commit 25b9335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autothread/blocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ def _checks_type(self, value, type_hint):
:param type_hint: Type hint to validate
"""
try:
typeguard.check_type("foo", value, type_hint)
typeguard.check_type(value, type_hint)
return True
except TypeError:
except typeguard.TypeCheckError:
return False

def _collect_result(self):
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
multiprocess
psutil
tqdm
typeguard
typing
typeguard>=3.0.2
typing

0 comments on commit 25b9335

Please sign in to comment.