Skip to content

Commit b51cbdd

Browse files
yichao-liangclaude
andcommitted
Mark unused action arg in sim_fn to satisfy pylint
The simulator callback signature must match StepSimulatorFn's (state, action, params) shape even though apply_rules doesn't use the action. Renaming to _action signals intent and silences pylint's unused-argument check. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7cc8aa3 commit b51cbdd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

predicators/approaches/agent_sim_learning_approach.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ def _fit_parameters(
323323
precomputing avoids re-running it inside the MCMC inner loop.
324324
"""
325325

326-
def sim_fn(state: State, action: Action, params: Dict[str,
327-
float]) -> Dict:
326+
def sim_fn(state: State, _action: Action, params: Dict[str,
327+
float]) -> Dict:
328328
return apply_rules(state, rules, params)
329329

330330
noise_sigma = 0.05 # matches fit_params default

0 commit comments

Comments
 (0)