Skip to content
New issue

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

Do not generate __match_args__ when running with --python-version < 3.10 #12503

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

stkrizh
Copy link
Contributor

@stkrizh stkrizh commented Mar 31, 2022

Description

This PR removes autogeneration of __match_args__ attribute for dataclasses and named tuples when running with --python-version set to < 3.10

Fixes #12489

@github-actions

This comment has been minimized.

@JukkaL
Copy link
Collaborator

JukkaL commented Jun 15, 2022

@stkrizh This looks good, and should be ready to land once there are no merge conflicts. (And sorry for the slow review!)

@stkrizh
Copy link
Contributor Author

stkrizh commented Jun 15, 2022

@JukkaL Thank you, no problem. I will update the PR soon.

@stkrizh stkrizh force-pushed the match-args-old-python-versions branch from 3eed98a to 5024752 Compare June 15, 2022 18:41
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JukkaL JukkaL merged commit 49b4b3d into python:master Jul 8, 2022
Gobot1234 pushed a commit to Gobot1234/mypy that referenced this pull request Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mypy generates __match_args__ for dataclasses and NamedTuples on Python <3.10
2 participants