Skip to content

Commit

Permalink
chore(deps): Update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bellini666 committed Aug 4, 2024
1 parent e85cf64 commit ec68347
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: check-xml
- id: check-symlinks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
rev: v0.5.6
hooks:
- id: ruff-format
- id: ruff
Expand Down
53 changes: 26 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ extend-select = [
"YTT",
]
extend-ignore = [
"A005",
"D1",
"D203",
"D213",
Expand Down
4 changes: 2 additions & 2 deletions strawberry_django/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
OneToManyInput,
OneToOneInput,
)
from .filters import filter, process_filters
from .filters import filter, process_filters # noqa: A004
from .mutations.mutations import input_mutation, mutation
from .ordering import Ordering, order, process_order
from .resolvers import django_resolver
from .type import input, interface, partial, type
from .type import input, interface, partial, type # noqa: A004

__all__ = [
"BaseFilterLookup",
Expand Down
2 changes: 1 addition & 1 deletion strawberry_django/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def filter( # noqa: A001
directives: Sequence[object] | None = (),
lookups: bool = False,
) -> Callable[[_T], _T]:
from .type import input
from .type import input # noqa: A004

return input(
model,
Expand Down
3 changes: 2 additions & 1 deletion strawberry_django/utils/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Sequence,
TypeVar,
Union,
cast,
overload,
)

Expand Down Expand Up @@ -106,7 +107,7 @@ def get_annotations(cls) -> dict[str, StrawberryAnnotation]:

namespace = sys.modules[c.__module__].__dict__
for k, v in getattr(c, "__annotations__", {}).items():
if not is_classvar(c, v):
if not is_classvar(cast(type, c), v):
annotations[k] = StrawberryAnnotation(v, namespace=namespace)

return annotations
Expand Down

0 comments on commit ec68347

Please sign in to comment.