Skip to content

Commit

Permalink
refactor: move Sequence import to type-checking block
Browse files Browse the repository at this point in the history
- Fix Ruff TC003 linting error
  • Loading branch information
Dresdn committed Feb 13, 2025
1 parent 28c67b3 commit 4deda2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eav/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

from __future__ import annotations

from collections.abc import Sequence
from typing import Any, ClassVar, Dict, List, Union
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Union

from django.contrib import admin
from django.contrib.admin.options import InlineModelAdmin, ModelAdmin
Expand All @@ -12,6 +11,9 @@

from eav.models import Attribute, EnumGroup, EnumValue, Value

if TYPE_CHECKING:
from collections.abc import Sequence

_FIELDSET_TYPE = List[Union[str, Dict[str, Any]]] # type: ignore[misc]

some_attribute = ClassVar[Dict[str, str]]
Expand Down

0 comments on commit 4deda2a

Please sign in to comment.