Skip to content

Conversation

@hamdanal
Copy link
Contributor

I was pointed recently to this issue python/typing-council#11 which suggests changing the interpretation of annotated but not assigned attributes of enums to no longer be considered members of the enumeration so I looked in the stdlib for places where this exists and changed the annotations to assignments.

Note that there is a PR implementing this change in mypy python/mypy#17207

@github-actions
Copy link
Contributor

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

@srittau srittau merged commit b570af5 into python:main May 18, 2024
@hamdanal hamdanal deleted the enum branch May 18, 2024 11:04
@hamdanal
Copy link
Contributor Author

Is there any downside to changing this in third party stubs that I am not aware of?

@srittau
Copy link
Collaborator

srittau commented May 18, 2024

I don't think so.

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.

2 participants