Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishMahendra committed Jul 30, 2024
1 parent 1097b43 commit b917b5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jaclang/runtimelib/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b917b5c

Please sign in to comment.