[New-bugs-announce] [issue44109] missing dataclass decorator in match-statement example

Ahmet Burak report at bugs.python.org
Tue May 11 08:36:09 EDT 2021


New submission from Ahmet Burak <ahmetbozyurtt at gmail.com>:

Using Point class as in the documentation example, raises TypeError: Point() takes no arguments
https://docs.python.org/3.10/whatsnew/3.10.html#patterns-and-classes

Also there is same example in the PEP 636's latests parts, Point class used with dataclass decorator and works perfectly.
https://www.python.org/dev/peps/pep-0636/

----------
assignee: docs at python
components: Documentation
messages: 393454
nosy: ahmetveburak, docs at python
priority: normal
severity: normal
status: open
title: missing dataclass decorator in match-statement example
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44109>
_______________________________________


More information about the New-bugs-announce mailing list