-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
It would be nice if you could set default values for a TypedDict
:
class Coordinate(TypedDict):
x: int = 0
y: int = 0
z: int = 0
# current behavior
assert Coordinate() == {}
# desired behavior
assert Coordinate() == {"x": 0, "y": 0, "z": 0}
allexpy, mayankmehtani, felix5572, IiroS, mrtolkien and 3 more
Metadata
Metadata
Assignees
Labels
No labels