Skip to content

More typing improvements#119

Merged
jelmer merged 3 commits intotesting-cabal:masterfrom
stephenfin:typing
Feb 23, 2026
Merged

More typing improvements#119
jelmer merged 3 commits intotesting-cabal:masterfrom
stephenfin:typing

Conversation

@stephenfin
Copy link
Collaborator

@stephenfin stephenfin commented Feb 20, 2026

See individual commits for details/motivation.

  • typing: Return Self from enter
  • typing: Use ParamSpec
  • typing: Improve types for WarningsCapture

This change is Reviewable

Otherwise the return value is typed as the Fixture class instead
of the actual class.

Signed-off-by: Stephen Finucane <stephen@that.guru>
This ensures args and kwargs are actually valid the cleanup function(s)
in question.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Actually expose the kwargs expected.

Signed-off-by: Stephen Finucane <stephen@that.guru>
@jelmer jelmer merged commit a89bebe into testing-cabal:master Feb 23, 2026
9 checks passed
@stephenfin stephenfin deleted the typing branch February 23, 2026 12:45
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