This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: final note on StrEnum documentation incorrectly refers to int.__format__ instead of str.__format__
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ethan.furman Nosy List: Dutcho, docs@python, ethan.furman, sobolevn
Priority: normal Keywords: patch

Created on 2022-01-29 10:00 by Dutcho, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 31007 merged sobolevn, 2022-01-29 10:44
Messages (3)
msg412067 - (view) Author: (Dutcho) Date: 2022-01-29 10:00
https://docs.python.org/3.11/library/enum.html#enum.StrEnum contains:
Note __str__() is str.__str__() to better support the replacement of existing constants use-case. __format__() is likewise int.__format__() for that same reason.

This should be (change indicated by triple star):
Note __str__() is str.__str__() to better support the replacement of existing constants use-case. __format__() is likewise ***str***.__format__() for that same reason.

Likely copied from IntEnum
msg412082 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2022-01-29 16:25
Good catch, thank you both.
msg412445 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2022-02-03 15:22
New changeset 734b1f119be6f0dcd6845c78a9e0a71d88a90b59 by Nikita Sobolev in branch 'main':
bpo-46569: [Enum] fix typo in `StrEnum` docs (GH-31007)
https://github.com/python/cpython/commit/734b1f119be6f0dcd6845c78a9e0a71d88a90b59
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90727
2022-02-03 15:23:24ethan.furmansetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2022-02-03 15:22:53ethan.furmansetmessages: + msg412445
2022-01-29 16:25:54ethan.furmansetmessages: + msg412082
2022-01-29 10:44:12sobolevnsetkeywords: + patch
nosy: + sobolevn

pull_requests: + pull_request29188
stage: needs patch -> patch review
2022-01-29 10:08:40AlexWaygoodsetassignee: docs@python -> ethan.furman

type: behavior
nosy: + ethan.furman
stage: needs patch
2022-01-29 10:00:29Dutchocreate