Type checking: enable stricter mypy rules
Metadata
Current evaluation
Superseded by a switch to the ty type checker. The request to enable stricter mypy rules was closed without implementation.
Suggested action: —
No scores available.
Issue body
### What needs to get done
Enable `warn_return_any` and `disallow_any_generics` when possible.
This should be easy after the craft-application migration
### Why it needs to get done
These rules help prevent common types of bugs
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Superseded by a switch to the ty type checker. The request to enable stricter mypy rules was closed without implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
90
Complexity:
30
Confidence:
75
Support Request:
5
|
close stale | Unaddressed request to enable stricter mypy rules, opened over 2.5 years ago with no maintainer comments or labels. The referenced migration is likely complete, and the task has been inactive for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
5
|
needs triage | Request to enable stricter mypy rules (warn_return_any, disallow_any_generics) to prevent type-related bugs. Open for over 2.5 years with no maintainer response or comments. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
80
Complexity:
25
Confidence:
75
Support Request:
5
|
needs triage | Enable stricter mypy configuration options warn_return_any and disallow_any_generics to catch type-related bugs. The request remains open with no comments or activity for 304 days, awaiting implementation post craft-application migration. |
Update history
| Date | Change |
|---|---|
| closed |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1316 Style: Enable mypy checking in all packages | charmcraft | closed | Superseded. The project switched to the ty type checker, making the requested package-wide mypy configuration changes unnecessary. | |
| #159 Make mypy linter more strict | rockcraft | closed | Request to enforce disallow-untyped-defs in mypy was closed without implementation or discussion. No pull requests were opened, indicating the change was abandoned or superseded by other linting updates. | |
| #326 fix type checking | craft-providers | open | Enhancement to improve type checking with pyright strict mode and mypy. Issue is 1172 days old; project has since migrated to ty and dropped mypy/pyright. |