diff --git a/python/pydantic_core/_pydantic_core.pyi b/python/pydantic_core/_pydantic_core.pyi index b86b7aad0..d785d1531 100644 --- a/python/pydantic_core/_pydantic_core.pyi +++ b/python/pydantic_core/_pydantic_core.pyi @@ -89,7 +89,7 @@ class SchemaValidator: *, strict: bool | None = None, from_attributes: bool | None = None, - context: dict[str, Any] | None = None, + context: Any | None = None, self_instance: Any | None = None, ) -> Any: """ @@ -119,7 +119,7 @@ class SchemaValidator: *, strict: bool | None = None, from_attributes: bool | None = None, - context: dict[str, Any] | None = None, + context: Any | None = None, self_instance: Any | None = None, ) -> bool: """ @@ -136,7 +136,7 @@ class SchemaValidator: input: str | bytes | bytearray, *, strict: bool | None = None, - context: dict[str, Any] | None = None, + context: Any | None = None, self_instance: Any | None = None, ) -> Any: """ @@ -163,9 +163,7 @@ class SchemaValidator: Returns: The validated Python object. """ - def validate_strings( - self, input: _StringInput, *, strict: bool | None = None, context: dict[str, Any] | None = None - ) -> Any: + def validate_strings(self, input: _StringInput, *, strict: bool | None = None, context: Any | None = None) -> Any: """ Validate a string against the schema and return the validated Python object. @@ -194,7 +192,7 @@ class SchemaValidator: *, strict: bool | None = None, from_attributes: bool | None = None, - context: dict[str, Any] | None = None, + context: Any | None = None, ) -> dict[str, Any] | tuple[dict[str, Any], dict[str, Any] | None, set[str]]: """ Validate an assignment to a field on a model. @@ -267,7 +265,7 @@ class SchemaSerializer: warnings: bool | Literal['none', 'warn', 'error'] = True, fallback: Callable[[Any], Any] | None = None, serialize_as_any: bool = False, - context: dict[str, Any] | None = None, + context: Any | None = None, ) -> Any: """ Serialize/marshal a Python object to a Python object including transforming and filtering data. @@ -313,7 +311,7 @@ class SchemaSerializer: warnings: bool | Literal['none', 'warn', 'error'] = True, fallback: Callable[[Any], Any] | None = None, serialize_as_any: bool = False, - context: dict[str, Any] | None = None, + context: Any | None = None, ) -> bytes: """ Serialize a Python object to JSON including transforming and filtering data. @@ -359,7 +357,7 @@ def to_json( serialize_unknown: bool = False, fallback: Callable[[Any], Any] | None = None, serialize_as_any: bool = False, - context: dict[str, Any] | None = None, + context: Any | None = None, ) -> bytes: """ Serialize a Python object to JSON including transforming and filtering data. @@ -434,7 +432,7 @@ def to_jsonable_python( serialize_unknown: bool = False, fallback: Callable[[Any], Any] | None = None, serialize_as_any: bool = False, - context: dict[str, Any] | None = None, + context: Any | None = None, ) -> Any: """ Serialize/marshal a Python object to a JSON-serializable Python object including transforming and filtering data.