Skip to content

Commit 9d9cc75

Browse files
committed
lint fixes
1 parent 9d0079b commit 9d9cc75

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

python/pydantic_core/_pydantic_core.pyi

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ class SchemaSerializer:
322322
warnings: bool | Literal['none', 'warn', 'error'] = True,
323323
fallback: Callable[[Any], Any] | None = None,
324324
serialize_as_any: bool = False,
325+
polymorphic_serialization: bool | None = None,
325326
context: Any | None = None,
326327
) -> Any:
327328
"""
@@ -345,6 +346,7 @@ class SchemaSerializer:
345346
fallback: A function to call when an unknown value is encountered,
346347
if `None` a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
347348
serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
349+
polymorphic_serialization: Whether to override configured model and dataclass polymorphic serialization for this call.
348350
context: The context to use for serialization, this is passed to functional serializers as
349351
[`info.context`][pydantic_core.core_schema.SerializationInfo.context].
350352
@@ -371,6 +373,7 @@ class SchemaSerializer:
371373
warnings: bool | Literal['none', 'warn', 'error'] = True,
372374
fallback: Callable[[Any], Any] | None = None,
373375
serialize_as_any: bool = False,
376+
polymorphic_serialization: bool | None = None,
374377
context: Any | None = None,
375378
) -> bytes:
376379
"""
@@ -394,7 +397,9 @@ class SchemaSerializer:
394397
"error" raises a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError].
395398
fallback: A function to call when an unknown value is encountered,
396399
if `None` a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
397-
serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
400+
serialize_as_any: Whether to serialize fields with duck-typing
401+
serialization behavior.
402+
polymorphic_serialization: Whether to override configured model and dataclass polymorphic serialization for this call.
398403
context: The context to use for serialization, this is passed to functional serializers as
399404
[`info.context`][pydantic_core.core_schema.SerializationInfo.context].
400405
@@ -425,6 +430,7 @@ def to_json(
425430
serialize_unknown: bool = False,
426431
fallback: Callable[[Any], Any] | None = None,
427432
serialize_as_any: bool = False,
433+
polymorphic_serialization: bool | None = None,
428434
context: Any | None = None,
429435
) -> bytes:
430436
"""
@@ -453,6 +459,7 @@ def to_json(
453459
fallback: A function to call when an unknown value is encountered,
454460
if `None` a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
455461
serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
462+
polymorphic_serialization: Whether to override configured model and dataclass polymorphic serialization for this call.
456463
context: The context to use for serialization, this is passed to functional serializers as
457464
[`info.context`][pydantic_core.core_schema.SerializationInfo.context].
458465
@@ -510,6 +517,7 @@ def to_jsonable_python(
510517
serialize_unknown: bool = False,
511518
fallback: Callable[[Any], Any] | None = None,
512519
serialize_as_any: bool = False,
520+
polymorphic_serialization: bool | None = None,
513521
context: Any | None = None,
514522
) -> Any:
515523
"""
@@ -536,6 +544,7 @@ def to_jsonable_python(
536544
fallback: A function to call when an unknown value is encountered,
537545
if `None` a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
538546
serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
547+
polymorphic_serialization: Whether to override configured model and dataclass polymorphic serialization for this call.
539548
context: The context to use for serialization, this is passed to functional serializers as
540549
[`info.context`][pydantic_core.core_schema.SerializationInfo.context].
541550

0 commit comments

Comments
 (0)