Skip to content

Commit 97ee527

Browse files
committed
Remove pydantic future annotations
1 parent 1812a3e commit 97ee527

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
python-version: ['3.9', '3.10', '3.11', '3.12']
16+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1717

1818
steps:
1919
- uses: actions/checkout@v4

debug_toolbar/settings.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import typing as t
42

53
from jinja2 import BaseLoader, ChoiceLoader, Environment, PackageLoader
@@ -16,7 +14,7 @@ class DebugToolbarSettings(BaseSettings):
1614
case_sensitive=False,
1715
)
1816

19-
DEFAULT_PANELS: list[str] = Field(
17+
DEFAULT_PANELS: t.List[str] = Field(
2018
[
2119
"debug_toolbar.panels.versions.VersionsPanel",
2220
"debug_toolbar.panels.timer.TimerPanel",
@@ -33,7 +31,7 @@ class DebugToolbarSettings(BaseSettings):
3331
"want included in the toolbar."
3432
),
3533
)
36-
PANELS: list[str] = Field(
34+
PANELS: t.List[str] = Field(
3735
[],
3836
description=(
3937
"A list of the full Python paths to each panel that you "
@@ -58,7 +56,7 @@ class DebugToolbarSettings(BaseSettings):
5856
Environment(autoescape=True),
5957
description="The Jinja environment instance used to render the toolbar.",
6058
)
61-
JINJA_LOADERS: list[BaseLoader] = Field(
59+
JINJA_LOADERS: t.List[BaseLoader] = Field(
6260
[],
6361
description=(
6462
"Jinja `BaseLoader` subclasses used to load templates "
@@ -108,7 +106,7 @@ class DebugToolbarSettings(BaseSettings):
108106
25,
109107
description="The toolbar keeps up to this many results in memory.",
110108
)
111-
PROFILER_OPTIONS: dict[str, t.Any] = Field(
109+
PROFILER_OPTIONS: t.Dict[str, t.Any] = Field(
112110
{"interval": 0.0001},
113111
description="A list of arguments can be supplied to the Profiler.",
114112
)
@@ -119,7 +117,7 @@ class DebugToolbarSettings(BaseSettings):
119117
"displayed on the `SettingsPanel`."
120118
),
121119
)
122-
LOGGING_COLORS: dict[str, Color] = Field(
120+
LOGGING_COLORS: t.Dict[str, Color] = Field(
123121
{
124122
"CRITICAL": Color("rgba(255, 0, 0, .4)"),
125123
"ERROR": Color("rgba(255, 0, 0, .2)"),

0 commit comments

Comments
 (0)