Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau authored Jan 18, 2024
1 parent 304936a commit 0f7eb3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/spec/enums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ where dynamic values are used.

* If using Python 3.11 or newer, the ``enum.member`` and ``enum.nonmember``
classes can be used to unambiguously distinguish members from non-members.
Type checkers should support these classes.
Type checkers should support these classes::

class Example(Enum):
a = member(1) # Member attribute
Expand All @@ -167,7 +167,7 @@ where dynamic values are used.
* An enum class can define a class symbol named ``_ignore_``. This can be a list
of names or a string containing a space-delimited list of names that are
excluded from the list of members at runtime. Type checkers may support this
mechanism.
mechanism::

class Pet(Enum):
CAT = 1 # Member attribute
Expand Down

0 comments on commit 0f7eb3c

Please sign in to comment.