Skip to content

Commit 5051b82

Browse files
committed
rename type
1 parent 75664c5 commit 5051b82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydantic_core/core_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,13 +1504,13 @@ class FieldValidatorCallbackSchema(TypedDict):
15041504
call: FieldValidatorCallback
15051505

15061506

1507-
class GeneralCallbackSchema(TypedDict):
1507+
class GeneralValidatorCallbackSchema(TypedDict):
15081508
type: Literal['general']
15091509
call: GeneralValidatorCallback
15101510

15111511

15121512
class CallbackSchema(TypedDict, total=False):
1513-
function: Required[Union[FieldValidatorCallbackSchema, GeneralCallbackSchema]]
1513+
function: Required[Union[FieldValidatorCallbackSchema, GeneralValidatorCallbackSchema]]
15141514
type: Required[Literal['function']]
15151515
mode: Required[Literal['before', 'after']]
15161516
schema: Required[CoreSchema]
@@ -1830,7 +1830,7 @@ def fn(v: bytes, validator: core_schema.CallableValidator, info: core_schema.Mod
18301830
class PlainCallbackSchema(TypedDict, total=False):
18311831
type: Required[Literal['function']]
18321832
mode: Required[Literal['plain']]
1833-
function: Required[Union[FieldValidatorCallbackSchema, GeneralCallbackSchema]]
1833+
function: Required[Union[FieldValidatorCallbackSchema, GeneralValidatorCallbackSchema]]
18341834
ref: str
18351835
metadata: Any
18361836
serialization: SerSchema

0 commit comments

Comments
 (0)