Files
openide/python/testData/inspections/PyRedeclarationInspection/classMethodRedeclaresAnotherClassMethod.py
Semyon Proshev 405a2936d8 PY-23552 Fixed: PyRedeclaration does not recognize static/class methods
Ignore only functions with unknown or redeclaration decorators in PyRedeclarationInspection
2017-08-01 12:42:30 +03:00

8 lines
193 B
Python

class TestClass:
@classmethod
def foo(cls):
print(0)
@classmethod
def <warning descr="Redeclared 'foo' defined above without usage">foo</warning>(cls):
print(1)