third_party.pylibs.pylint.src/test/input/func_noerror_external_classmethod_crash.py

20 lines
438 B
Python
Raw Normal View History

2006-11-23 16:26:30 +00:00
# pylint: disable-msg=W0232,R0903
"""tagging a function as a class method cause a crash when checking for
signature overriding
"""
def fetch_config(mainattr=None):
"""return a class method"""
@classmethod
def fetch_order(cls, attr, var):
"""a class method"""
if attr == mainattr:
return var
return None
return fetch_order
class Aaa:
"""hop"""
fetch_order = fetch_config('A')