jaclang 0.7.31__py3-none-any.whl → 0.7.33__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.

jaclang/__init__.py CHANGED
@@ -416,13 +416,6 @@ def field(
416
416
  jac_test = Jac.create_test
417
417
  static = ClassVar
418
418
 
419
- root = cast(Root, Jac.get_root())
420
419
 
421
-
422
- # Listen to context change and update the above global root here.
423
- def _update_root() -> None:
424
- global root
425
- root = cast(Root, ExecutionContext.get_root())
426
-
427
-
428
- ExecutionContext.on_ctx_change.append(lambda ctx: _update_root())
420
+ def root() -> Root:
421
+ return cast(Root, ExecutionContext.get_root())