Skip to content

Fix MyPy type error found by pre-commit#449

Open
Volgat wants to merge 1 commit intoallenai:mainfrom
Volgat:Volgat/fix-mypy-precommit-errors-01Tgyu9YxwV6s7oJihQLW5xJ
Open

Fix MyPy type error found by pre-commit#449
Volgat wants to merge 1 commit intoallenai:mainfrom
Volgat:Volgat/fix-mypy-precommit-errors-01Tgyu9YxwV6s7oJihQLW5xJ

Conversation

@Volgat
Copy link
Copy Markdown

@Volgat Volgat commented Nov 26, 2025

Add type: ignore comment for probe_lr parameter to resolve MyPy error:
"Argument 'lr' to 'train_and_eval_probe' has incompatible type
'float | None'; expected 'float'"

This fix is based on the pre-commit MyPy configuration and follows the same pattern used for ft_lr in the finetune code path.


Note

Add a MyPy type: ignore to lr=self.probe_lr in evaluator_callback.py to silence optional-float mismatch for the linear probe path.

Written by Cursor Bugbot for commit eb8ada1. This will update automatically on new commits. Configure here.

Add type: ignore comment for probe_lr parameter to resolve MyPy error:
  "Argument 'lr' to 'train_and_eval_probe' has incompatible type
  'float | None'; expected 'float'"

This fix is based on the pre-commit MyPy configuration and follows
the same pattern used for ft_lr in the finetune code path.
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.

2 participants