Skip to content

conformance suite: do not assert questionable behavior with enums#2223

Open
JelleZijlstra wants to merge 2 commits intopython:mainfrom
JelleZijlstra:enum-member
Open

conformance suite: do not assert questionable behavior with enums#2223
JelleZijlstra wants to merge 2 commits intopython:mainfrom
JelleZijlstra:enum-member

Conversation

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Mar 21, 2026

At runtime, attributes like Pet.genus do not exist on the class, only on instances. Type checkers should
at least be allowed to recognize that fact and emit an error.

At runtime, attributes like Pet.genus do not exist. Type checkers should
at least be allowed to recognize that fact and emit an error.
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