Skip to content

fix: resolve Interval constructor arity and Fact attributes when JIT is disabled#159

Open
abhiprd2000 wants to merge 1 commit into
lab-v2:mainfrom
abhiprd2000:fix/interval-constructor-arity
Open

fix: resolve Interval constructor arity and Fact attributes when JIT is disabled#159
abhiprd2000 wants to merge 1 commit into
lab-v2:mainfrom
abhiprd2000:fix/interval-constructor-arity

Conversation

@abhiprd2000

Copy link
Copy Markdown

Description

Fixes a fatal TypeError and AttributeError that occurs when importing or executing PyReason with JIT compilation disabled (NUMBA_DISABLE_JIT=1). This unbricks the interpreted fallback layer and allows the disable_jit unit test suite to run successfully.

Changes:

  • Interval Proxy Arity: Intercepted variable arguments (*args) in Interval.__new__ to gracefully handle Numba's uncompiled reconstruction loop, and aligned the factory instantiation signature in interval_type.py.

  • Fact Model Attributes: Added public .static field assignment to both Python Fact class constructors to match expected access hooks during interpreted fact initialization.

Fixes #158
Signed off : abhiprd2000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Fatal TypeError when importing or running with JIT disabled (NUMBA_DISABLE_JIT=1) due to Interval constructor arity mismatch

1 participant