diff --git a/jaxtyping/_decorator.py b/jaxtyping/_decorator.py index 07abcfd..a0c4f13 100644 --- a/jaxtyping/_decorator.py +++ b/jaxtyping/_decorator.py @@ -25,6 +25,14 @@ import types import weakref +try: + import jax._src.traceback_util as traceback_util +except ImportError: + pass +else: + traceback_util.register_exclusion(__file__) + + storage = threading.local()