diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2021-12-02 16:49:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 16:49:52 (GMT) |
commit | b2afdc95cc8f4e9228148730949a43cef0323f15 (patch) | |
tree | 00f99a2e959b803ee11434f6866215ac63dc90e6 /Misc/NEWS.d/next | |
parent | cb8f491f46e262549f6c447b31625cab7c20a60a (diff) | |
download | cpython-b2afdc95cc8f4e9228148730949a43cef0323f15.zip cpython-b2afdc95cc8f4e9228148730949a43cef0323f15.tar.gz cpython-b2afdc95cc8f4e9228148730949a43cef0323f15.tar.bz2 |
bpo-45535: Improve output of Enum ``dir()`` (GH-29316)
Modify the ``EnumType.__dir__()`` and ``Enum.__dir__()`` to ensure
that user-defined methods and methods inherited from mixin classes always
show up in the output of `help()`. This change also makes it easier for
IDEs to provide auto-completion.
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-10-29-16-28-06.bpo-45535.n8NiOE.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-10-29-16-28-06.bpo-45535.n8NiOE.rst b/Misc/NEWS.d/next/Library/2021-10-29-16-28-06.bpo-45535.n8NiOE.rst new file mode 100644 index 0000000..bda1b40 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-10-29-16-28-06.bpo-45535.n8NiOE.rst @@ -0,0 +1 @@ +Improve output of ``dir()`` with Enums. |