-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
See this TODO comment:
| TODO: Ignore fields with init=False. |
It is possible for a dataclass field to define init=False, which means that field cannot be initialized via the __init__() method. This is a problem for the binder, as it passes all parsed fields to __init__().
The use case for init=False offered by the standard library documentation is to mark fields initialized via __post_init__(). This use case would be satisfied by simply having the binder ignore all fields with init=False.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working