-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Stop using ctypes for traceback mutation #3203
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3203 +/- ##
===============================================
Coverage 100.00000% 100.00000%
===============================================
Files 124 124
Lines 18792 18760 -32
Branches 1268 1267 -1
===============================================
- Hits 18792 18760 -32
|
There was a problem hiding this 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 a few comments that are now outdated
"TracebackType", | ||
tputil.make_proxy(controller, type(base_tb), base_tb), | ||
) # Returns proxy to traceback | ||
|
||
|
||
# this is used for collapsing single-exception ExceptionGroups when using | ||
# `strict_exception_groups=False`. Once that is retired this function and its helper can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"and its helper" does not apply anymore with removing this
################################################################ | ||
# concat_tb | ||
################################################################ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Header is no longer required
Fixes #405
It's kind of unnecessary since we'll rip this code out anyways once strict exception groups are the only thing supported, but for now it's simpler.