Skip to content

Commit

Permalink
tbtools: Fix typing of current
Browse files Browse the repository at this point in the history
This preps for a typing fix in python/typeshed#13231 where `__cause__` and `__context__` can be None.
  • Loading branch information
kevinji authored Dec 11, 2024
1 parent 7868bef commit df0119b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/werkzeug/debug/tbtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def all_tracebacks(
self,
) -> list[tuple[str | None, traceback.TracebackException]]:
out = []
current = self._te
current: traceback.TracebackException | None = self._te

while current is not None:
if current.__cause__ is not None:
Expand Down

0 comments on commit df0119b

Please sign in to comment.