New submission from Batuhan Taskaya <isidenti...@gmail.com>:
$ cat t.py from dataclasses import dataclass @dataclass class Foo: bar: int Foo() $ python t.py Traceback (most recent call last): File "/home/isidentical/cpython/cpython/t.py", line 7, in <module> Foo() TypeError: __create_fn__.<locals>.__init__() missing 1 required positional argument: 'bar' ---------- components: Library (Lib) messages: 376594 nosy: BTaskaya, eric.smith priority: normal severity: normal status: open title: dataclasses: generated method's using the wrong qualname type: behavior versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41747> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com