Skip to content

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

Merged
pull[bot] merged 6 commits into
sysfce2:masterfrom
testing-cabal:master
Mar 14, 2026
Merged

pull[bot] merged 6 commits into
sysfce2:masterfrom
testing-cabal:master

Conversation

@pull

@pull pull Bot commented Mar 14, 2026 •

Copy link
Copy Markdown

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 6 commits March 14, 2026 11:04
This ensures the thing we pass actually has a length.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Signed-off-by: Stephen Finucane <stephen@that.guru>
This will always raise an exception.

Signed-off-by: Stephen Finucane <stephen@that.guru>
This ensures that we don't lose type information for the return
value.

Signed-off-by: Stephen Finucane <stephen@that.guru>
This ensures we don't lose type information on the `exception` attribute
of the context manager:

  with self.assertRaises(ValueError) as ctx:
      int("foo")

  reveal_type(ctx.exception)  # now reveals ValueError

We also narrow the tuple type, but varadic expansion is not a thing yet,
so we need explicitly type for different lengths of tuple. We decide
that at most 3 exceptions can be passed: any more and you'll lose this
information, which seems fair.

Signed-off-by: Stephen Finucane <stephen@that.guru>
@pull pull Bot locked and limited conversation to collaborators Mar 14, 2026
@pull pull Bot added the ⤵️ pull label Mar 14, 2026
@pull
pull Bot merged commit e6ec2fc into sysfce2:master Mar 14, 2026

This branch was previously deployed

1 inactive deployment
release — e6ec2fc5 Deployed Mar 14, 2026 by pull[bot] via build #30
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