Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type RaisesGroup properly #3141

Merged
merged 15 commits into from
Nov 27, 2024
Merged

Type RaisesGroup properly #3141

merged 15 commits into from
Nov 27, 2024

Conversation

A5rocks
Copy link
Contributor

@A5rocks A5rocks commented Nov 19, 2024

@jakkdl because you wrote this / these comments

This should fix the typing weirdness around it. I didn't really look too hard at things originally so there might be some outdated comments.

Maybe also @TeamSpen210 because types

... also this might be easier to review commit by commit. I tried my best to keep things separated (eg staging hunks so that only related pieces were in a single commit). However, I did not run mypy / tests after every single commit so things may be broken after a commit.

@A5rocks A5rocks added the typing Adding static types to trio's interface label Nov 19, 2024
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.05%. Comparing base (7d9c4a6) to head (a6bcda1).

❗ There is a different number of reports uploaded between BASE (7d9c4a6) and HEAD (a6bcda1). Click for more details.

HEAD has 36 uploads less than BASE
Flag BASE (7d9c4a6) HEAD (a6bcda1)
macOS 6 4
3.10 4 2
Ubuntu 7 4
3.9 6 3
3.13 4 1
3.11 4 1
3.12 5 1
Alpine 1 0
pypy-3.10 3 0
Windows 12 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3141      +/-   ##
==========================================
- Coverage   99.62%   94.05%   -5.57%     
==========================================
  Files         122      122              
  Lines       18400    18400              
  Branches     1223     1222       -1     
==========================================
- Hits        18331    17307    -1024     
- Misses         47     1010     +963     
- Partials       22       83      +61     
Files with missing lines Coverage Δ
src/trio/_tests/test_testing_raisesgroup.py 100.00% <100.00%> (ø)
src/trio/testing/_raises_group.py 100.00% <100.00%> (ø)

... and 38 files with indirect coverage changes

---- 🚨 Try these New Features:

Copy link
Member

@jakkdl jakkdl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work! I'm super happy to see progress here as I'm planning to pick up work on integrating it upstream soon ❤️

src/trio/_tests/type_tests/raisesgroup.py Outdated Show resolved Hide resolved
src/trio/_tests/type_tests/raisesgroup.py Outdated Show resolved Hide resolved
src/trio/_tests/type_tests/raisesgroup.py Outdated Show resolved Hide resolved
src/trio/_tests/type_tests/raisesgroup.py Outdated Show resolved Hide resolved
src/trio/_tests/type_tests/raisesgroup.py Show resolved Hide resolved
src/trio/testing/_raises_group.py Show resolved Hide resolved
src/trio/testing/_raises_group.py Outdated Show resolved Hide resolved
src/trio/testing/_raises_group.py Show resolved Hide resolved
src/trio/testing/_raises_group.py Outdated Show resolved Hide resolved
src/trio/testing/_raises_group.py Outdated Show resolved Hide resolved
@A5rocks A5rocks requested a review from jakkdl November 24, 2024 09:00
Copy link
Member

@jakkdl jakkdl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Copy link
Member

@CoolCat467 CoolCat467 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great other than one small thing I noticed

src/trio/_tests/test_testing_raisesgroup.py Outdated Show resolved Hide resolved
Copy link
Member

@CoolCat467 CoolCat467 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jakkdl jakkdl merged commit 8d37eb6 into python-trio:main Nov 27, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typing Adding static types to trio's interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants