Skip to content

Commit 457c8db

Browse files
committed
Fix __get_pydantic_core_schema__
1 parent b073e03 commit 457c8db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flask_openapi3/models/file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ class FileStorage(_FileStorage):
1414
"""
1515

1616
@classmethod
17-
def __get_pydantic_json_schema__(cls, _core_schema, _handler) -> JsonSchemaValue:
17+
def __get_pydantic_json_schema__(cls, *_args: Any, **_kwargs: Any) -> JsonSchemaValue:
1818
field_schema = {"format": "binary", "type": "string"}
1919
return field_schema
2020

2121
@classmethod
22-
def __get_pydantic_core_schema__(cls, _source: Any) -> core_schema.CoreSchema:
22+
def __get_pydantic_core_schema__(cls, *_args: Any, **_kwargs: Any) -> core_schema.CoreSchema:
2323
return core_schema.with_info_plain_validator_function(cls.validate)
2424

2525
@classmethod
26-
def validate(cls, value: _FileStorage, _info: core_schema.ValidationInfo) -> _FileStorage:
26+
def validate(cls, value: _FileStorage, *_args: Any, **_kwargs: Any) -> _FileStorage:
2727
return value

0 commit comments

Comments
 (0)