From f9892ec945e9fd907b22e961e950dc1e7129db8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Thu, 31 Oct 2024 19:45:47 +0300 Subject: [PATCH] Apply UP006 and UP035 changes (#2025) UP006: https://docs.astral.sh/ruff/rules/non-pep585-annotation/ UP035: https://docs.astral.sh/ruff/rules/deprecated-import/ --- debug_toolbar/_stubs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):