On Thu, Dec 9, 2021 at 11:08 AM Simão Afonso <
simao.afo...@powertools-tech.com> wrote:

> Shouldn't typing be encouraged on dataclasses, at least?


Typing shouldn’t be encouraged for any particular class, nor the language
itself. Typing policy is a matter for the project/organization to decide.

But Annotations are required by dataclasses in any case. That’s how the
decorator identifies fields.

The contents of those annotations are up to the user.

-CHB


> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/SG33WQJCHQUG23NKETD6FCPSYIWP5U4T/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/CLICKMEZKFXPCPKI46GAIQD4S77VAEUR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to