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.
V
Victor Stinner committed
507a574de31a1bd7fed8ba4f04afa285d985109b
Parent: 150af75
Committed by GitHub <noreply@github.com>
on 4/9/2021, 3:51:22 PM