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

Added the "compact" keyword argument to TracebackException.__init__() #1914

Closed
wants to merge 1 commit into from

Conversation

agronholm
Copy link
Contributor

This is a requirement to achieve Python 3.10 compatibility.

Partial fix to #1899.

This is a requirement to achieve Python 3.10 compatibility.
@codecov
Copy link

codecov bot commented Feb 25, 2021

Codecov Report

Merging #1914 (ed869ac) into master (875f9f3) will increase coverage by 0.03%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master    #1914      +/-   ##
==========================================
+ Coverage   99.59%   99.62%   +0.03%     
==========================================
  Files         114      114              
  Lines       14574    14577       +3     
  Branches     1110     1111       +1     
==========================================
+ Hits        14515    14523       +8     
+ Misses         42       37       -5     
  Partials       17       17              
Impacted Files Coverage Δ
trio/_core/_multierror.py 98.89% <33.33%> (-1.11%) ⬇️
trio/testing/_check_streams.py 99.33% <0.00%> (+0.66%) ⬆️
trio/tests/test_socket.py 100.00% <0.00%> (+0.81%) ⬆️

@@ -381,11 +381,17 @@ def traceback_exception_init(
limit=None,
lookup_lines=True,
capture_locals=False,
compact=False,
Copy link
Member

Choose a reason for hiding this comment

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

Can we use *args, **kwargs here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did that as first (as it is simpler), but figured it might be better from a static analysis perspective to add the actual new argument. I don't really care that much either way.

@altendky altendky mentioned this pull request Mar 6, 2021
7 tasks
@altendky
Copy link
Member

altendky commented Mar 7, 2021

Merged into #1921 to get coverage.

@A5rocks
Copy link
Contributor

A5rocks commented Jun 21, 2023

Hi, I assume the branch this is from can be deleted?

@CoolCat467
Copy link
Member

Hi, I assume the branch this is from can be deleted?

With #1921 being merged I would assume yes

@CoolCat467 CoolCat467 deleted the traceback-compact branch September 6, 2023 01:54
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.

5 participants