Skip to content

Commit cf24e20

Browse files
[pre-commit.ci] pre-commit autoupdate (#767)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b93ff5b commit cf24e20

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: check-xml
1919
- id: check-symlinks
2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.12.1
21+
rev: v0.12.3
2222
hooks:
2323
- id: ruff-format
2424
- id: ruff

strawberry_django/relay/utils.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,7 @@ def resolve_model_nodes(
118118
required: bool = False,
119119
filter_perms: bool = False,
120120
) -> AwaitableOrValue[
121-
Union[
122-
Iterable[_M],
123-
models.QuerySet[_M],
124-
Iterable[Optional[_M]],
125-
Optional[models.QuerySet[_M]],
126-
]
121+
Union[Iterable[_M], models.QuerySet[_M], Iterable[Optional[_M]], None]
127122
]: ...
128123

129124

@@ -135,12 +130,7 @@ def resolve_model_nodes(
135130
required=False,
136131
filter_perms=False,
137132
) -> AwaitableOrValue[
138-
Union[
139-
Iterable[_M],
140-
models.QuerySet[_M],
141-
Iterable[Optional[_M]],
142-
Optional[models.QuerySet[_M]],
143-
]
133+
Union[Iterable[_M], models.QuerySet[_M], Iterable[Optional[_M]], None]
144134
]:
145135
"""Resolve model nodes, ensuring those are prefetched in a sync context.
146136

0 commit comments

Comments
 (0)