Skip to content

Commit

Permalink
try adding serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Oct 15, 2024
1 parent 10374e2 commit 7719bc0
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 7719bc0

Please sign in to comment.