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 20, 2025
1 parent ffc5ef0 commit 661bf5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion eav/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from __future__ import annotations

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

from django.contrib import admin
from django.contrib.admin.options import InlineModelAdmin, ModelAdmin
Expand Down
4 changes: 2 additions & 2 deletions eav/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

__all__ = [
"Attribute",
"EAVModelMeta",
"Entity",
"EnumGroup",
"EnumValue",
"Value",
"Entity",
"EAVModelMeta",
]
6 changes: 3 additions & 3 deletions tests/test_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def test_generate_slug_uniqueness() -> None:
generated_slugs: dict[str, str] = {}
for input_str in inputs:
slug = generate_slug(input_str)
assert (
slug not in generated_slugs.values()
), f"Duplicate slug '{slug}' generated for input '{input_str}'"
assert slug not in generated_slugs.values(), (
f"Duplicate slug '{slug}' generated for input '{input_str}'"
)
generated_slugs[input_str] = slug

assert len(generated_slugs) == len(
Expand Down

0 comments on commit 661bf5a

Please sign in to comment.