-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Consider the following simple program:
from dataclasses import dataclass
import apischema
@dataclass
class Foo:
d: dict[str, int]
d = {}
foo = Foo(d=d)
print(d is apischema.serialize(foo)['d'])This program will print True.
Is it expected and desired that apischema.serialize reuses original objects?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels