-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestinvalidThis doesn't seem rightThis doesn't seem rightobjectsobjects.pyobjects.py
Description
struct "sees" only annotated attributes, but to set default values annotation is not needed, but to set them in struct they must still be annotated.
Need to implement this behavior for struct:
@struct
class Something:
a: int
b = 8
assert Something.b == 8
assert Something(int()).b == 8Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestinvalidThis doesn't seem rightThis doesn't seem rightobjectsobjects.pyobjects.py