Skip to content

[pull] master from testing-cabal:master#85

Merged
pull[bot] merged 3 commits intosysfce2:masterfrom
testing-cabal:master
Apr 6, 2026
Merged

[pull] master from testing-cabal:master#85
pull[bot] merged 3 commits intosysfce2:masterfrom
testing-cabal:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 6, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

stephenfin and others added 3 commits April 5, 2026 21:11
Beyond some tweaks to `type: ignore` comments, we need to disable the
`warn_unused_configs = true` option to work around [1]. We also take the
opportunity to drop the unnecessary `warn_unused_ignores = true` option
which is already handled by `strict = true`

[1] python/mypy#21137

Signed-off-by: Stephen Finucane <stephen@that.guru>
This is a partial revert of 1078647.
mypy (and possibly others) are not able to correctly resolve a ParamSpec
for an overridden method. This causes a lot of false positives when
using assertRaises (as a function) on methods with overrides, which
cannot be resolved except through `type: ignore` statements. In
addition, it's often desirable to test functions with incorrect types to
assert runtime validation. Given these two issues, it's easier to just
drop the use of ParamSpec.

Signed-off-by: Stephen Finucane <stephen@that.guru>
typing: Make less use of ParamSpec
@pull pull Bot locked and limited conversation to collaborators Apr 6, 2026
@pull pull Bot added the ⤵️ pull label Apr 6, 2026
@pull pull Bot merged commit 2c9f793 into sysfce2:master Apr 6, 2026
8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants