Skip to content

Fix Pyright type errors in parameter.py and task.py#520

Merged
hirosassa merged 5 commits into
m3dev:masterfrom
hirosassa:fix-type-check-errors
May 15, 2026
Merged

Fix Pyright type errors in parameter.py and task.py#520
hirosassa merged 5 commits into
m3dev:masterfrom
hirosassa:fix-type-check-errors

Conversation

@hirosassa

@hirosassa hirosassa commented May 13, 2026

Copy link
Copy Markdown
Collaborator

In this PR, I fix following type errors:

  • parameter.py — Use super(BoolParameter, self).__init__() instead of Parameter.__init__(self) in ExplicitBoolParameter to avoid Pyright invariance error (Parameter[bool] vs Parameter[str])
  • task.py:398 — Annotate dependencies as list[Any] since it contains both str and dict[str, str] values
  • task.py:441 — Cast param_value to TaskOnKart[Any] before calling .make_unique_id() in get_info()

@hirosassa hirosassa enabled auto-merge (squash) May 15, 2026 00:14
@hirosassa hirosassa merged commit 489e255 into m3dev:master May 15, 2026
8 checks passed
@hirosassa hirosassa deleted the fix-type-check-errors branch May 15, 2026 00:17
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