Fix install_import_hook(..., None)

This commit is contained in:
Patrick Kidger
2023-11-27 09:50:02 -08:00
parent 850f4e72cd
commit 205978958f
+1 -1
View File
@@ -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