Skip to content

Conversation

@hmcty
Copy link
Contributor

@hmcty hmcty commented Nov 18, 2022

Fixed #13103

Adds a check to class attribute access to ensure it isn't a defined slot.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks, looks great! Made a small change to the test to make it clearer that it's access on class that is disallowed

@github-actions
Copy link
Contributor

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

@hauntsaninja hauntsaninja merged commit 7eef68a into python:master Dec 13, 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.

False negative when accessing annotated class attributes

2 participants