Skip to content

Commit

Permalink
Add serialization key to InvalidSchema (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle authored Oct 15, 2024
1 parent bbd4de5 commit c38a68d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/pydantic_core/core_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ class InvalidSchema(TypedDict, total=False):
type: Required[Literal['invalid']]
ref: str
metadata: Dict[str, Any]
# note, we never plan to use this, but include it for type checking purposes to match
# all other CoreSchema union members
serialization: SerSchema


def invalid_schema(ref: str | None = None, metadata: Dict[str, Any] | None = None) -> InvalidSchema:
Expand Down

0 comments on commit c38a68d

Please sign in to comment.