Skip to content

Commit e588c26

Browse files
committed
Fix pydantic typing error for Python 3.9
1 parent c2ef00b commit e588c26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

debug_toolbar/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DebugToolbarSettings(BaseSettings):
4747
"want disabled (but still displayed) by default."
4848
),
4949
)
50-
ALLOWED_HOSTS: t.Sequence[str] | None = Field(
50+
ALLOWED_HOSTS: t.Optional[t.Sequence[str]] = Field(
5151
None,
5252
description=(
5353
"If it's set, the Debug Toolbar is shown only "

0 commit comments

Comments
 (0)