Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 24c26e7 commit 542eaed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin_data_views/templatetags/admin_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def add_help_text(fields: NestedDict, help_texts: NestedDict) -> dict[str, DictI
elif isinstance(value, list):
values = []
for item in value:
if not isinstance(item, (dict, list)):
if not isinstance(item, dict | list):
values.append((item, ""))
else:
res = add_help_text(item, {} if isinstance(help_text, str) else help_text)
Expand Down
4 changes: 2 additions & 2 deletions admin_data_views/typing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from collections.abc import ItemsView
from typing import Any, Callable, NamedTuple, TypedDict, Union
from collections.abc import Callable, ItemsView
from typing import Any, NamedTuple, TypedDict, Union

try:
from typing import NotRequired
Expand Down

0 comments on commit 542eaed

Please sign in to comment.