Skip to content

More typing improvements#119

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

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

Conversation

@stephenfin
Copy link
Copy Markdown
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

Comment thread fixtures/_fixtures/popen.py Outdated
Comment thread fixtures/_fixtures/warnings.py Outdated
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
stephenfin added a commit to stephenfin/testtools that referenced this pull request Mar 24, 2026
Like b1e4145 but for our tests.

We also remove a FIXME that is no longer valid: the bug in fixtures was
fixed in [1]

[1] testing-cabal/fixtures#119

Signed-off-by: Stephen Finucane <stephen@that.guru>
stephenfin added a commit to stephenfin/testtools that referenced this pull request Mar 24, 2026
Like b1e4145 but for our tests.

We also remove a FIXME that is no longer valid: the bug in fixtures was
fixed in [1]

[1] testing-cabal/fixtures#119

Signed-off-by: Stephen Finucane <stephen@that.guru>
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