]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46246: add missing __slots__ to importlib.metadata.DeprecatedList (GH-30452)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 11 Feb 2022 01:18:23 +0000 (17:18 -0800)
committerGitHub <noreply@github.com>
Fri, 11 Feb 2022 01:18:23 +0000 (17:18 -0800)
commit1124ab6d1d15dc5058e03b63fd1d95e6f1009cc3
tree39adcce7fac302098fdb513768645c1c04a09ed4
parent14284b0e71c2110f94941b774478fb594d0ef192
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
(cherry picked from commit dd76b3f7d332dd6eced5cbc2ad2adfc397700b3d)

Co-authored-by: Arie Bovenberg <a.c.bovenberg@gmail.com>
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]