Skip to content

fix: move _internal_config assignment back into TrainableModel.__init__#559

Open
saurabhbikram wants to merge 1 commit intoOpenPipe:mainfrom
nansen-ai:fix-internal-config-dead-code
Open

fix: move _internal_config assignment back into TrainableModel.__init__#559
saurabhbikram wants to merge 1 commit intoOpenPipe:mainfrom
nansen-ai:fix-internal-config-dead-code

Conversation

@saurabhbikram
Copy link

Summary

The _internal_config assignment in TrainableModel was accidentally placed after a return {} statement inside _noop_cost_calculator, making it dead code. This means _internal_config was never actually set on TrainableModel instances.

This PR moves the 3 lines back into __init__ where they belong.

Files changed

  • src/art/model.py — move _internal_config assignment from dead code in _noop_cost_calculator back into __init__

The _internal_config assignment was accidentally placed after a return
statement inside _noop_cost_calculator, making it dead code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@saurabhbikram saurabhbikram marked this pull request as ready for review February 12, 2026 08:53
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.

1 participant

Comments