https://github.com/python/cpython/commit/5b385197625e669473859c63bee6f14c983d2be6
commit: 5b385197625e669473859c63bee6f14c983d2be6
branch: main
author: Jonathan Dung <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-06-13T09:47:23+01:00
summary:

Docs: Fix method directive signatures in `enum` docs (#151429)

files:
M Doc/library/enum.rst

diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index 65bb0b483350c5..559a76bb3963e0 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -629,7 +629,7 @@ Data types
          >>> white in purple
          False
 
-   .. method:: __iter__(self):
+   .. method:: __iter__(self)
 
       Returns all contained non-alias members::
 
@@ -640,7 +640,7 @@ Data types
 
       .. versionadded:: 3.11
 
-   .. method:: __len__(self):
+   .. method:: __len__(self)
 
       Returns number of members in flag::
 
@@ -651,7 +651,7 @@ Data types
 
       .. versionadded:: 3.11
 
-   .. method:: __bool__(self):
+   .. method:: __bool__(self)
 
       Returns *True* if any members in flag, *False* otherwise::
 
@@ -688,7 +688,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*::
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to