]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Docs: Fix method directive signatures in `enum` docs (GH-151429) (#151432)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 13 Jun 2026 08:54:44 +0000 (10:54 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Jun 2026 08:54:44 +0000 (08:54 +0000)
(cherry picked from commit 5b385197625e669473859c63bee6f14c983d2be6)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
Doc/library/enum.rst

index 11339dc9fe947f28229db0f57e837e85f19ab524..88f2254061af2d62f6b45dab27f52c3de06a2c87 100644 (file)
@@ -634,7 +634,7 @@ Data types
          >>> white in purple
          False
 
-   .. method:: __iter__(self):
+   .. method:: __iter__(self)
 
       Returns all contained non-alias members::
 
@@ -645,7 +645,7 @@ Data types
 
       .. versionadded:: 3.11
 
-   .. method:: __len__(self):
+   .. method:: __len__(self)
 
       Returns number of members in flag::
 
@@ -656,7 +656,7 @@ Data types
 
       .. versionadded:: 3.11
 
-   .. method:: __bool__(self):
+   .. method:: __bool__(self)
 
       Returns *True* if any members in flag, *False* otherwise::
 
@@ -693,7 +693,7 @@ Data types
          >>> purple ^ Color.GREEN
          <Color.RED|GREEN|BLUE: 7>
 
-   .. method:: __invert__(self):
+   .. method:: __invert__(self)
 
       Returns all the flags in *type(self)* that are not in *self*::