Skip to content

Commit b2b0b52

Browse files
jonathandungmiss-islington
authored andcommitted
Docs: Fix method directive signatures in enum docs (GH-151429)
(cherry picked from commit 5b38519) Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
1 parent 945a1ac commit b2b0b52

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/enum.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ Data types
634634
>>> white in purple
635635
False
636636

637-
.. method:: __iter__(self):
637+
.. method:: __iter__(self)
638638

639639
Returns all contained non-alias members::
640640

@@ -645,7 +645,7 @@ Data types
645645

646646
.. versionadded:: 3.11
647647

648-
.. method:: __len__(self):
648+
.. method:: __len__(self)
649649

650650
Returns number of members in flag::
651651

@@ -656,7 +656,7 @@ Data types
656656

657657
.. versionadded:: 3.11
658658

659-
.. method:: __bool__(self):
659+
.. method:: __bool__(self)
660660

661661
Returns *True* if any members in flag, *False* otherwise::
662662

@@ -693,7 +693,7 @@ Data types
693693
>>> purple ^ Color.GREEN
694694
<Color.RED|GREEN|BLUE: 7>
695695

696-
.. method:: __invert__(self):
696+
.. method:: __invert__(self)
697697

698698
Returns all the flags in *type(self)* that are not in *self*::
699699

0 commit comments

Comments
 (0)