8000 Fix wrong type for parameter (#5127) · pydantic/pydantic@1840864 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1840864

Browse files
authored
Fix wrong type for parameter (#5127)
Co-authored-by: JensHeinrich <github.com/JensHeinrich>
1 parent 314abca commit 1840864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic/class_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def validator(
5555
each_item: bool = False,
5656
always: bool = False,
5757
check_fields: bool = True,
58-
whole: bool = None,
58+
whole: Optional[bool] = None,
5959
allow_reuse: bool = False,
6060
) -> Callable[[AnyCallable], 'AnyClassMethod']:
6161
"""

0 commit comments

Comments
 (0)
0