Skip to content

Add new fields to TracebackException, fix cause/context/lineno types - #13231

Merged
JelleZijlstra merged 1 commit into
python:mainfrom
kevinji:patch-1
Dec 23, 2024
Merged

Add new fields to TracebackException, fix cause/context/lineno types#13231
JelleZijlstra merged 1 commit into
python:mainfrom
kevinji:patch-1

Conversation

@kevinji

Copy link
Copy Markdown
Contributor

@kevinjikevinji changed the title Add new fields to TracebackException, fix lineno typeAdd new fields to TracebackException, fix cause/context/lineno typeDec 11, 2024
@kevinjikevinji changed the title Add new fields to TracebackException, fix cause/context/lineno typeAdd new fields to TracebackException, fix cause/context/lineno typesDec 11, 2024
@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/debug/tbtools.py:261: error: Incompatible types in assignment (expression has type "Optional[TracebackException]", variable has type "TracebackException") [assignment]

@kevinji

Copy link
Copy Markdown
ContributorAuthor

@srittau maybe you can help review this, as a follow-up to #13204?

@JelleZijlstra
JelleZijlstra merged commit 8ad4f1b into python:mainDec 23, 2024
@kevinji
kevinji deleted the patch-1 branch December 23, 2024 04:39
@cdce8pcdce8p mentioned this pull request Jan 1, 2025
pgjones pushed a commit to pallets/werkzeug that referenced this pull request Apr 18, 2025
This preps for a typing fix in python/typeshed#13231 where `__cause__` and `__context__` can be None.
Sign up for freeto 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

@kevinji@JelleZijlstra