FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-103596: [Enum] do not shadow mixed-in methods/attributes by ethanfurman · Pull Request #103600 · python/cpython · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
fix typo
Co-authored-by: samypr100 <3933065+samypr100@users.noreply.github.com>
  • Loading branch information
ethanfurman and samypr100 authored Apr 18, 2023
commit 0d06493741aec2a8342b12313be325c91bd1cd41
2 changes: 1 addition & 1 deletion Doc/howto/enum.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ inherits from :class:`Enum` itself.
.. note:: Case of Enum Members

Because Enums are used to represent constants, and to help avoid issues
with name clashes betweewe mixin-class methods/attributes and enum names,
with name clashes between mixin-class methods/attributes and enum names,
we strongly recommend using UPPER_CASE names for members, and will be using
that style in our examples.

Expand Down

Back | FazBrowse Home | New Git URL