Some properties do not remain private after constructing a serialised model #8523
Closed
1 task done
Labels
bug V2
Bug related to Pydantic V2
Initial Checks
Description
After constructing a model from the same serialised model, some properties do not remain private.
SecurityGroupRequest.model_construct(**group_req.model_serialize())
This seems caused by inheritance.
Example Code
tl;dr the penultimate line should not fail
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: