[issue46569] final note on StrEnum documentation incorrectly refers to int.__format__ instead of str.__format__

Dutcho report at bugs.python.org
Sat Jan 29 05:00:29 EST 2022


New submission from Dutcho <dutcho at ziggo.nl>:

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

----------
assignee: docs at python
components: Documentation
messages: 412067
nosy: Dutcho, docs at python
priority: normal
severity: normal
status: open
title: final note on StrEnum documentation incorrectly refers to int.__format__ instead of str.__format__
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46569>
_______________________________________


More information about the Python-bugs-list mailing list