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

Adds slots=True support for @dataclass #11483

Merged
merged 6 commits into from
Nov 7, 2021
Merged

Adds slots=True support for @dataclass #11483

merged 6 commits into from
Nov 7, 2021

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Nov 6, 2021

Closes #11482

}
py_version = self._ctx.api.options.python_version
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to use it with unsafe_hash later, so it is on the top level. See #11463

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I just have some minor suggestions.

mypy/plugins/dataclasses.py Outdated Show resolved Hide resolved
mypy/plugins/dataclasses.py Outdated Show resolved Hide resolved
mypy/plugins/dataclasses.py Outdated Show resolved Hide resolved
sobolevn and others added 3 commits November 7, 2021 17:37
@JelleZijlstra
Copy link
Member

Some error messages need to be changed in the tests.

@sobolevn
Copy link
Member Author

sobolevn commented Nov 7, 2021

@JelleZijlstra thanks! Addressed all your comments! Really helpful, I've missed a couple of things 👍

@hauntsaninja hauntsaninja merged commit 5bba0f3 into python:master Nov 7, 2021
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 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.

dataclasses plugins does not respect slots=True argument
3 participants