From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 13 Jun 2026 08:55:39 +0000 (+0200) Subject: [3.13] Docs: Fix method directive signatures in `enum` docs (GH-151429) (#151433) X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=52ee4d8e8d8a1cbfe195654a18916f2f0ff93a70;p=thirdparty%2FPython%2Fcpython.git [3.13] Docs: Fix method directive signatures in `enum` docs (GH-151429) (#151433) (cherry picked from commit 5b385197625e669473859c63bee6f14c983d2be6) Co-authored-by: Jonathan Dung --- diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index b5b44458d63a..29cd612d0f82 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -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 - .. method:: __invert__(self): + .. method:: __invert__(self) Returns all the flags in *type(self)* that are not in *self*::