Skip to content

Commit 269954c

Browse files
[pre-commit.ci] pre-commit autoupdate (#784)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.8 → v0.13.1](astral-sh/ruff-pre-commit@v0.12.8...v0.13.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 05a534f commit 269954c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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.8
21+
rev: v0.13.1
2222
hooks:
2323
- id: ruff-format
2424
- id: ruff

strawberry_django/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def get_queryset(
379379
**kwargs,
380380
) -> _QS:
381381
settings = strawberry_django_settings()
382-
pk = kwargs.get(settings["DEFAULT_PK_FIELD_NAME"], None)
382+
pk = kwargs.get(settings["DEFAULT_PK_FIELD_NAME"])
383383
queryset = super().get_queryset(queryset, info, **kwargs)
384384
return apply(filters, queryset, info, pk)
385385

strawberry_django/relay/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def map_results(results: models.QuerySet[_M]) -> list[_M]:
209209
if required:
210210
retval.append(results_map[str(node_id)])
211211
else:
212-
retval.append(results_map.get(str(node_id), None))
212+
retval.append(results_map.get(str(node_id)))
213213

214214
return retval # type: ignore
215215

0 commit comments

Comments
 (0)