numpy.testing.decorate_methods(cls, decorator, testmatch=None)
[source]
Apply a decorator to all methods in a class matching a regular expression.
The given decorator is applied to all public methods of cls
that are matched by the regular expression testmatch
(testmatch.search(methodname)
). Methods that are private, i.e. start with an underscore, are ignored.
Parameters: |
|
---|
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.testing.decorate_methods.html