Skip to content

Commit

Permalink
Fix pydantic typing error for Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mongkok committed Feb 13, 2024
1 parent c2ef00b commit e588c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class DebugToolbarSettings(BaseSettings):
"want disabled (but still displayed) by default."
),
)
ALLOWED_HOSTS: t.Sequence[str] | None = Field(
ALLOWED_HOSTS: t.Optional[t.Sequence[str]] = Field(
None,
description=(
"If it's set, the Debug Toolbar is shown only "
Expand Down

0 comments on commit e588c26

Please sign in to comment.