[Python-checkins] bpo-46569: [Enum] fix typo in `StrEnum` docs (GH-31007)

ethanfurman webhook-mailer at python.org
Thu Feb 3 10:22:54 EST 2022


https://github.com/python/cpython/commit/734b1f119be6f0dcd6845c78a9e0a71d88a90b59
commit: 734b1f119be6f0dcd6845c78a9e0a71d88a90b59
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2022-02-03T07:22:41-08:00
summary:

bpo-46569: [Enum] fix typo in `StrEnum` docs (GH-31007)

files:
M Doc/library/enum.rst

diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index a37c9d4506241..672e256c77c0d 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -420,7 +420,7 @@ Data Types
 
    .. note:: :meth:`__str__` is :func:`str.__str__` to better support the
       *replacement of existing constants* use-case.  :meth:`__format__` is likewise
-      :func:`int.__format__` for that same reason.
+      :func:`str.__format__` for that same reason.
 
    .. versionadded:: 3.11
 



More information about the Python-checkins mailing list