Skip to content

Commit 69d2ed0

Browse files
committed
pre-commit autoupdate
1 parent 9f1ef07 commit 69d2ed0

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ ci:
22
autoupdate_schedule: monthly
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.11.4
5+
rev: v0.11.8
66
hooks:
77
- id: ruff
88
- id: ruff-format
99
- repo: https://github.com/python-jsonschema/check-jsonschema
10-
rev: 0.32.1
10+
rev: 0.33.0
1111
hooks:
1212
- id: check-github-workflows
1313
- id: check-readthedocs

src/apispec/ext/marshmallow/field_converter.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,7 @@ def datetime2properties(self, field, **kwargs: typing.Any) -> dict:
565565
:rtype: dict
566566
"""
567567
ret = {}
568-
if isinstance(field, marshmallow.fields.DateTime) and not isinstance(
569-
field, marshmallow.fields.Date
570-
):
568+
if isinstance(field, marshmallow.fields.DateTime):
571569
if field.format == "iso" or field.format is None:
572570
# Will return { "type": "string", "format": "date-time" }
573571
# as specified inside DEFAULT_FIELD_MAPPING

src/apispec/ext/marshmallow/openapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def field2required(
218218
ret = {}
219219
partial = getattr(field.parent, "partial", False)
220220
ret["required"] = field.required and (
221-
not partial or (is_collection(partial) and field.name not in partial) # type:ignore
221+
not partial or (is_collection(partial) and field.name not in partial)
222222
)
223223
return ret
224224

0 commit comments

Comments
 (0)