mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-16 22:40:26 +00:00
refactor: move Sequence import to type-checking block
- Fix Ruff TC003 linting error
This commit is contained in:
parent
28c67b3d04
commit
4deda2abc5
1 changed files with 4 additions and 2 deletions
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Sequence
|
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Union
|
||||||
from typing import Any, ClassVar, Dict, List, Union
|
|
||||||
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.contrib.admin.options import InlineModelAdmin, ModelAdmin
|
from django.contrib.admin.options import InlineModelAdmin, ModelAdmin
|
||||||
|
|
@ -12,6 +11,9 @@ from django.utils.safestring import mark_safe
|
||||||
|
|
||||||
from eav.models import Attribute, EnumGroup, EnumValue, Value
|
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]
|
_FIELDSET_TYPE = List[Union[str, Dict[str, Any]]] # type: ignore[misc]
|
||||||
|
|
||||||
some_attribute = ClassVar[Dict[str, str]]
|
some_attribute = ClassVar[Dict[str, str]]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue