Skip to content

Commit 2cdb0c1

Browse files
ci(pre-commit.ci): autoupdate (#28)
* ci(pre-commit.ci): autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.2](astral-sh/ruff-pre-commit@v0.11.12...v0.12.2) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](pre-commit/mirrors-mypy@v1.16.0...v1.16.1) * fix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Talley Lambert <[email protected]>
1 parent 2771a6e commit 2cdb0c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ repos:
1010
- id: validate-pyproject
1111

1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.11.12
13+
rev: v0.12.7
1414
hooks:
1515
- id: ruff
1616
args: [--fix, --unsafe-fixes]
1717
- id: ruff-format
1818

1919
- repo: https://github.com/pre-commit/mirrors-mypy
20-
rev: v1.16.0
20+
rev: v1.17.0
2121
hooks:
2222
- id: mypy
2323
files: "^src/"

src/griffe_fieldz/_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _default_repr(field: fieldz.Field) -> str | None:
124124
if (factory := field.default_factory) is not field.MISSING:
125125
if len(inspect.signature(factory).parameters) == 0:
126126
with suppress(Exception):
127-
return repr(factory())
127+
return repr(factory()) # type: ignore[call-arg]
128128
return "<dynamic>"
129129
return None
130130

0 commit comments

Comments
 (0)