]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46246: add missing __slots__ to importlib.metadata.DeprecatedList (GH-30452)
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Fri, 11 Feb 2022 00:56:21 +0000 (01:56 +0100)
committerGitHub <noreply@github.com>
Fri, 11 Feb 2022 00:56:21 +0000 (16:56 -0800)
commitdd76b3f7d332dd6eced5cbc2ad2adfc397700b3d
treef4b5f5b219371a356498beb9b42978f3eb5a6bfa
parent80e4f262aa27a39abf3fadc19a6323fea4607a8f
bpo-46246: add missing __slots__ to importlib.metadata.DeprecatedList (GH-30452)

Confirmed with @jaraco that this indeed needs a fix.

A question that came up while I was digging into the code: I think `SelectableGroups` could similarly use `__slots__ = ()`, since its purpose seems only for convenience around `dict`, not to have attributes of its own.

Automerge-Triggered-By: GH:jaraco
Lib/importlib/metadata/__init__.py
Lib/test/test_importlib/test_metadata_api.py
Misc/NEWS.d/next/Library/2022-01-07-13-27-53.bpo-46246.CTLx32.rst [new file with mode: 0644]