Passing default list argument to dataclasses
From the dataclasses.field docs: The parameters to field() are: default_factory: If provided, it must be a zero-argument callable that will be called when a default value is needed for this field. Among other purposes, this can be used to specify fields with mutable default values, as discussed below. It is an error to specify both … Read more