Skip to content

Commit 70b04eb

Browse files
committed
fix: merge
Signed-off-by: Louis Mandel <lmandel@us.ibm.com>
1 parent 7009b7d commit 70b04eb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/pdl/pdl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def exec_program(
104104
if score is not None and not isinstance(score, Ref):
105105
config["score"] = Ref(score)
106106
assert config.get("score") is None or isinstance(config.get("score"), Ref)
107-
state = InterpreterState(**config)
107+
state = InterpreterState(**config) # pyright: ignore
108108
if not isinstance(scope, ScopeType):
109109
scope = ScopeType(scope or {})
110110
loc = loc or empty_block_location
@@ -330,7 +330,7 @@ def main():
330330

331331
exit_code = pdl_interpreter.generate(
332332
pdl_file,
333-
InterpreterState(**config),
333+
InterpreterState(**config), # pyright: ignore
334334
ScopeType(initial_scope),
335335
trace_file,
336336
)

src/pdl/pdl_infer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
PdlLocationType,
1212
PdlUsage,
1313
Program,
14-
ScopeType,
1514
get_default_model_parameters,
1615
)
1716
from .pdl_distributions import Categorical, viz
@@ -25,6 +24,7 @@
2524
infer_smc,
2625
infer_smc_parallel,
2726
)
27+
from .pdl_interpreter_state import ScopeType
2828
from .pdl_parser import parse_dict, parse_file, parse_str
2929
from .pdl_scheduler import create_event_loop_thread
3030
from .pdl_utils import validate_scope

src/pdl/pdl_inference.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
from .pdl import InterpreterConfig, Result
99
from .pdl import exec_program as pdl_exec_program
10-
from .pdl_ast import BlockType, PdlLocationType, Program, ScopeType
10+
from .pdl_ast import BlockType, PdlLocationType, Program
1111
from .pdl_distributions import Categorical
12+
from .pdl_interpreter_state import ScopeType
1213
from .pdl_utils import Resample
1314

1415
T = TypeVar("T")

0 commit comments

Comments
 (0)