mirror of
https://github.com/wassname/jaxtyping.git
synced 2026-09-17 12:20:14 +08:00
Fix install_import_hook(..., None)
This commit is contained in:
@@ -109,7 +109,7 @@ class 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
|
||||
|
||||
Reference in New Issue
Block a user