On Thu, Mar 11, 2021 at 10:20 AM Paul Bryan <pbr...@anode.ca> wrote:

> Given that @dataclass is a decorator, and otherwise you're just defining a
> class, some concerns:
>
> 1. Such proposed syntax would require a change to the language
> specification.
>
> 2. It would seem that / and * in a class not decorated with @dataclass
> would be of no other utility.
>
> Paul
>

Well the utility of this, without dataclasses, or only for the type checker
as far as I know:

class C:
    member: Any

Perhaps the additional syntax could also be useful for the type checker?

---
Ricky.

"I've never met a Kentucky man who wasn't either thinking about going home
or actually going home." - Happy Chandler
_______________________________________________
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/OUBTWPGEM5A6LJ2NDM56YJIFE3FFELZ2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to