Skip to content

Commit d0dbb09

Browse files
l00ptrJulian Vanden Broeck
andauthored
Match return type of SerializationInfo.mode() to mode of model_dump() (#1770)
Co-authored-by: Julian Vanden Broeck <[email protected]>
1 parent 8991709 commit d0dbb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pydantic_core/core_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def context(self) -> ContextT:
145145
...
146146

147147
@property
148-
def mode(self) -> Literal['python', 'json']:
148+
def mode(self) -> Literal['python', 'json'] | str:
149149
"""The serialization mode set during serialization."""
150150
...
151151

0 commit comments

Comments
 (0)