From b917b5cb70640964490a9e74820d8d60df111357 Mon Sep 17 00:00:00 2001 From: Ashish Mahendra Date: Tue, 30 Jul 2024 13:14:11 +0000 Subject: [PATCH] mypy fix --- jaclang/runtimelib/importer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jaclang/runtimelib/importer.py b/jaclang/runtimelib/importer.py index ad3d74e72..bda85cc3b 100644 --- a/jaclang/runtimelib/importer.py +++ b/jaclang/runtimelib/importer.py @@ -182,7 +182,11 @@ def load_jac_mod_as_item( ) codeobj = self.importer.get_codeobj( full_target=jac_file_path, - module_name=self.importer.get_sys_mod_name(jac_file_path), + module_name=( + self.importer.get_sys_mod_name(jac_file_path) + if isinstance(self.importer, JacImporter) + else name + ), mod_bundle=mod_bundle, cachable=cachable, caller_dir=caller_dir,