diff --git a/debug_toolbar/_stubs.py b/debug_toolbar/_stubs.py index a27f3d1fe..c536a0fe7 100644 --- a/debug_toolbar/_stubs.py +++ b/debug_toolbar/_stubs.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import Any, List, NamedTuple, Optional, Tuple +from typing import Any, NamedTuple, Optional from django import template as dj_template @@ -14,7 +14,7 @@ class InspectStack(NamedTuple): index: int -TidyStackTrace = List[Tuple[str, int, str, str, Optional[Any]]] +TidyStackTrace = list[tuple[str, int, str, str, Optional[Any]]] class RenderContext(dj_template.context.RenderContext):