Skip to content

Commit

Permalink
Use Validator type (#2754)
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria authored Jan 11, 2025
1 parent 2c0c75f commit f907ced
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/marshmallow/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,7 @@ def __init__(
default: typing.Any = missing_,
data_key: str | None = None,
attribute: str | None = None,
validate: (
typing.Callable[[typing.Any], typing.Any]
| typing.Iterable[typing.Callable[[typing.Any], typing.Any]]
| None
) = None,
validate: types.Validator | typing.Iterable[types.Validator] | None = None,
required: bool = False,
allow_none: bool | None = None,
load_only: bool = False,
Expand Down

0 comments on commit f907ced

Please sign in to comment.