jaclang 0.7.30__py3-none-any.whl → 0.7.31__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of jaclang might be problematic. Click here for more details.

@@ -604,8 +604,8 @@ class FuseTypeInfoPass(Pass):
604
604
  node_type: str = ""
605
605
 
606
606
  # left type is a list
607
- if left.expr_type.startswith("builtins.list["):
608
- node_type = left.expr_type[len("builtins.list[") : -1]
607
+ if left.expr_type.startswith(("builtins.list[", "jaclang.JacList[")):
608
+ node_type = left.expr_type[left.expr_type.find("[") + 1 : -1]
609
609
 
610
610
  # right index slice is a range then it's type is the same as left
611
611
  if right.is_range:
@@ -472,7 +472,8 @@ class PyImportPass(JacImportPass):
472
472
  if mod:
473
473
  mod.name = imported_mod_name if imported_mod_name else mod.name
474
474
  if mod.name == "__init__":
475
- mod_name = mod.loc.mod_path.split(os.sep)[-2]
475
+ # (thakee): This needs to be re-done after implementing path handling properly.
476
+ mod_name = mod.loc.mod_path.split(os.path.sep)[-2]
476
477
  self.__debug_print(
477
478
  f"\tRaised the __init__ file and rename the mod to be {mod_name}"
478
479
  )