# Draft of typing spec chapter for enums

**URL:** <https://discuss.python.org/t/draft-of-typing-spec-chapter-for-enums/43496>\
**Category:** Typing\
**Tags:** typing-spec\
**Created:** [January 18, 2024, 6:50am UTC](https://discuss.python.org/t/draft-of-typing-spec-chapter-for-enums/43496 "2024-01-18T06:50:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![erictraut](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/erictraut/32/15190_2.png) [@erictraut](https://discuss.python.org/u/erictraut)\
**Post date:** [January 18, 2024, 6:50am UTC](https://discuss.python.org/t/draft-of-typing-spec-chapter-for-enums/43496/1 "2024-01-18T06:50:23Z")

</div>

I’ve written a first draft of a new chapter for the typing spec that focuses on type checker behaviors for enumerations.

The `Enum` class has many atypical behaviors, and type checkers need to include special-case logic to handle these behaviors. Not surprisingly, there are a number of differences between type checkers in how they handle enums. This is an attempt to define and standardize the desired behaviors.

If you are interested in reviewing the draft, you can find it in [this PR](https://github.com/python/typing/pull/1591). Minor feedback (typos, wording suggestions, etc.) can be added directly to the PR. For significant questions or areas of potential disagreement, please post to this thread so community members get better visibility and can engage in the discussion.

---

_[View the full topic](https://discuss.python.org/t/draft-of-typing-spec-chapter-for-enums/43496)._
