From ad99aff3c267a76548189710a08e3235334321f3 Mon Sep 17 00:00:00 2001 From: Patrick Kidger <33688385+patrick-kidger@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:59:24 +0200 Subject: [PATCH] Now hiding type(Module).__call__ --- equinox/_module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/equinox/_module.py b/equinox/_module.py index da8a8b49..ea395f8f 100644 --- a/equinox/_module.py +++ b/equinox/_module.py @@ -535,6 +535,7 @@ def __signature__(cls): # This method is called whenever you initialise a module: `MyModule(...)` def __call__(cls, *args, **kwargs): + __tracebackhide__ = True if _is_force_abstract[cls]: # Any other is-abstract checks will be handled in super().__call__. raise TypeError("Cannot instantiate abstract `equinox.Module`.")