]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41905: Add abc.update_abstractmethods() (GH-22485)
authorBen Avrahami <avrahami.ben@gmail.com>
Tue, 6 Oct 2020 17:40:50 +0000 (20:40 +0300)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 17:40:50 +0000 (10:40 -0700)
commitbef7d299eb911086ea5a7ccf7a9da337e38a8491
tree25508f320dada76441df02c0ce5b756608524b39
parenta8bf44d04915f7366d9f8dfbf84822ac37a4bab3
bpo-41905: Add abc.update_abstractmethods() (GH-22485)

This function recomputes `cls.__abstractmethods__`.
Also update `@dataclass` to use it.
Doc/library/abc.rst
Doc/library/functools.rst
Lib/abc.py
Lib/dataclasses.py
Lib/test/test_abc.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2020-10-01-21-11-03.bpo-41905._JpjR4.rst [new file with mode: 0644]