1- from __future__ import annotations
2-
31import typing as t
42
53from 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