From 7bc89acf83b434b32e066a6d5f4c6fd12a6525d2 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Thu, 14 Nov 2024 11:30:45 +0530 Subject: [PATCH] Test --- jac/jaclang/plugin/default.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/jac/jaclang/plugin/default.py b/jac/jaclang/plugin/default.py index 4a65eff210..88876efe9c 100644 --- a/jac/jaclang/plugin/default.py +++ b/jac/jaclang/plugin/default.py @@ -591,11 +591,8 @@ def make_architype( if not hasattr(cls, "_jac_entry_funcs_") or not hasattr( cls, "_jac_exit_funcs_" ): - # Saving the module path and reassign it after creating cls - # So the jac modules are part of the correct module - cur_module = cls.__module__ - cls = type(cls.__name__, (cls, arch_base), {}) - cls.__module__ = cur_module + bases = ((arch_base,) + cls.__bases__) if arch_base not in cls.__bases__ else cls.__bases__ + cls.__bases__ = bases cls._jac_entry_funcs_ = on_entry # type: ignore cls._jac_exit_funcs_ = on_exit # type: ignore else: