diff options
| author | Victor Stinner <vstinner@python.org> | 2021-04-09 17:51:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-09 17:51:22 +0200 |
| commit | 507a574de31a1bd7fed8ba4f04afa285d985109b (patch) | |
| tree | 44fb249533ae98698ef7736bc050df450f9a07e1 /Lib/test/test_difflib.py | |
| parent | 150af7543214e1541fa582374502ac1cd70e8eb4 (diff) | |
| download | cpython-git-507a574de31a1bd7fed8ba4f04afa285d985109b.tar.gz | |
bpo-43682: @staticmethod inherits attributes (GH-25268)
Static methods (@staticmethod) and class methods (@classmethod) now
inherit the method attributes (__module__, __name__, __qualname__,
__doc__, __annotations__) and have a new __wrapped__ attribute.
Changes:
* Add a repr() method to staticmethod and classmethod types.
* Add tests on the @classmethod decorator.
Diffstat (limited to 'Lib/test/test_difflib.py')
0 files changed, 0 insertions, 0 deletions
