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 29, 2024
1 parent 0cbff45 commit 46c580a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/django_upgrade/fixers/admin_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def __init__(self, parent: ast.AST, lineno: int) -> None:
decorable_admins: MutableMapping[State, dict[str, AdminDetails]] = WeakKeyDictionary()
# Name of site to set of unregistered model names, or True if potentially all
# models have been unregistered
unregistered_site_models: MutableMapping[
State, dict[str, set[str] | Literal[True]]
] = WeakKeyDictionary()
unregistered_site_models: MutableMapping[State, dict[str, set[str] | Literal[True]]] = (
WeakKeyDictionary()
)


def _is_django_admin_imported(state: State) -> bool:
Expand Down Expand Up @@ -265,9 +265,9 @@ def visit_Call(
existing_names.update(unregistered_names)


site_definitions: MutableMapping[
ast.Module, dict[str, int | None]
] = WeakKeyDictionary()
site_definitions: MutableMapping[ast.Module, dict[str, int | None]] = (
WeakKeyDictionary()
)


def get_site_defined_line(module: ast.AST, site_name: str) -> int | None:
Expand Down

0 comments on commit 46c580a

Please sign in to comment.