Skip to content

Commit

Permalink
Fix install_import_hook(..., None)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger committed Nov 27, 2023
1 parent 850f4e7 commit 2059789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaxtyping/_import_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self, typechecker):

elif typechecker is None:
# If it is None, ignore it silently (use dummy decorator)
self.hash = 0
self.hash = "0"
Typechecker.lookup[self.hash] = lambda x, *_, **__: x
else:
# Passed typechecker is invalid
Expand Down

0 comments on commit 2059789

Please sign in to comment.