Files
openide/python/testData/inspections/PyRedeclarationInspection/staticMethodRedeclaresAnotherStaticMethod.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
189 B
Python

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