Repository navigation
Commit e9904b0
Match the distutils sdist base type for the user_options override
The RUF012 ClassVar annotation used the Command base's union type, which
mypy rejects as an incompatible override of distutils.command.sdist —
whose typeshed stub (present on Python < 3.12) types user_options as
list[tuple[str, str | None, str]]. Narrow the annotation to match.
Surfaced only by CI's 3.11 job; local mypy defaults to a newer Python
where the distutils stub is absent and the base resolves to Any, so
`mypy .` passed. Reproduce with `mypy --python-version 3.11`.
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent 8fc2c84 commit e9904b0
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments