We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = 'https://github.com/ericvsmith' closed_at = <Date 2020-10-21.13:50:18.058> created_at = <Date 2020-09-08.20:38:57.596> labels = ['type-bug', 'library', '3.10'] title = "dataclasses: generated method's using the wrong qualname" updated_at = <Date 2020-10-21.13:50:18.057> user = 'https://github.com/isidentical'
bugs.python.org fields:
activity = <Date 2020-10-21.13:50:18.057> actor = 'eric.smith' assignee = 'eric.smith' closed = True closed_date = <Date 2020-10-21.13:50:18.058> closer = 'eric.smith' components = ['Library (Lib)'] creation = <Date 2020-09-08.20:38:57.596> creator = 'BTaskaya' dependencies = [] files = [] hgrepos = [] issue_num = 41747 keywords = ['patch'] message_count = 3.0 messages = ['376594', '379208', '379209'] nosy_count = 2.0 nosy_names = ['eric.smith', 'BTaskaya'] pr_nums = ['22155'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue41747' versions = ['Python 3.10']
The text was updated successfully, but these errors were encountered:
$ 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'
Sorry, something went wrong.
New changeset c7437e2 by Batuhan Taskaya in branch 'master': bpo-41747: Ensure all dataclass methods uses their parents' qualname (GH-22155) c7437e2
Thanks for the PR!
Will this be ported to other versions of Python? I have this issue reproduced on Python 3.7.13 and Python 3.9.12.
No, it won't be backported. Both 3.7 and 3.9 are only accepting security related patches.
You could fix it in a custom distribution, but that's about your only option.
ericvsmith
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: