diff --git a/jaxtyping/_import_hook.py b/jaxtyping/_import_hook.py index f2a551e..10f7f69 100644 --- a/jaxtyping/_import_hook.py +++ b/jaxtyping/_import_hook.py @@ -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