Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThakeeNathees committed Nov 14, 2024
1 parent d5f911a commit 7bc89ac
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions jac/jaclang/plugin/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7bc89ac

Please sign in to comment.