This repository has been archived by the owner on Apr 10, 2023. It is now read-only.
Allow annotations for specifying fields instead of class attributes #99
Labels
feature
New feature or request
The new
typing.NamedTuple
class offers a new way to specify named tuples using colon based type labels.I would like this syntax to be available for defining model classes so that the Dog example in the README can be written like this
Reference:
https://docs.python.org/3/library/typing.html#typing.NamedTuple
The text was updated successfully, but these errors were encountered: