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

22 lines
489 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"""
2007-03-09 07:46:31 +00:00
2006-11-23 16:26:30 +00:00
def fetch_order(cls, attr, var):
"""a class method"""
if attr == mainattr:
return var
return None
2007-03-09 07:46:31 +00:00
fetch_order = classmethod(fetch_order)
2006-11-23 16:26:30 +00:00
return fetch_order
class Aaa:
"""hop"""
fetch_order = fetch_config('A')
2006-12-05 09:29:06 +00:00
__revision__ = None