Skip to content

Fix missing Task import for type annotation in evaluator#1291

Open
luv-oct22 wants to merge 1 commit into
EvolvingLMMs-Lab:mainfrom
luv-oct22:fix/evaluator-task-type-annotation
Open

Fix missing Task import for type annotation in evaluator#1291
luv-oct22 wants to merge 1 commit into
EvolvingLMMs-Lab:mainfrom
luv-oct22:fix/evaluator-task-type-annotation

Conversation

@luv-oct22
Copy link
Copy Markdown

Summary

  • The task variable in evaluator.py was annotated as Task, but the Task class was never imported in the file
  • Added the missing from lmms_eval.api.task import Task to resolve the undefined type annotation

Test plan

  • Verified the module imports correctly with ruff check
  • Confirmed Task is the correct type for task_output.task based on TaskOutput.from_taskdict() implementation

The `task` variable in `evaluator.py` was annotated as `Task`, but
`Task` was never imported in the file. Added the missing import from
`lmms_eval.api.task`.
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