blob: c24bbd87239fee1fb4b7fc29a8b55a4dce75adc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# pylint: disable=too-few-public-methods,unused-argument,useless-object-inheritance
"""tagging a function as a class method cause a crash when checking for
signature overriding
"""
def fetch_config(mainattr=None):
"""return a class method"""
def fetch_order(cls, attr, var):
"""a class method"""
if attr == mainattr:
return var
return None
fetch_order = classmethod(fetch_order)
return fetch_order
class Aaa(object):
"""hop"""
fetch_order = fetch_config('A')
__revision__ = None
|