STINNER Victor added the comment: Redefine a method is a common practice indirectly using decorators:
@staticmethod def method(): pass is like: def method(): pass method = staticmethod(method) So you can clarify what do you mean by "redefining"? Some linters already can such common mistake (very common mistake in unit tests when using copy & paste). ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28776> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com