diff --git a/src/werkzeug/debug/tbtools.py b/src/werkzeug/debug/tbtools.py index d922893ea..416f09711 100644 --- a/src/werkzeug/debug/tbtools.py +++ b/src/werkzeug/debug/tbtools.py @@ -237,8 +237,8 @@ def __str__(self) -> str: def all_tracebacks( self, ) -> list[tuple[str | None, traceback.TracebackException]]: - out = [] - current = self._te + out: list[tuple[str | None, traceback.TracebackException]] = [] + current: traceback.TracebackException | None = self._te while current is not None: if current.__cause__ is not None: