From 205978958fb9e08c662a284712dc41b4930e9cc0 Mon Sep 17 00:00:00 2001 From: Patrick Kidger <33688385+patrick-kidger@users.noreply.github.com> Date: Mon, 6 Nov 2023 10:33:59 -0800 Subject: [PATCH] Fix install_import_hook(..., None) --- jaxtyping/_import_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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