ericvsmith / dataclasses

Apache License 2.0
584 stars 53 forks source link

Support for `field` annotation #133

Closed uriva closed 6 years ago

uriva commented 6 years ago

I couldn't get this to work: https://www.python.org/dev/peps/pep-0557/#id41 i.e.:

l: list = field(default_factory=list)

Is it supported?

uriva commented 6 years ago

Ah nevermind I didn't realize you need to import field as well.