new

method of dascore.models.base.InventoryModel source

new(
    self ,
    **kwargs ,
)-> ‘Self’

Create a new instance with some attributes updated.

Dumps all fields (not just the set ones) so union discriminators and validator-normalized fields survive reconstruction.