Explicitely ignore the routines when scanning a class
This commit is contained in:
parent
f510026ff7
commit
0fd4d50279
@ -435,6 +435,8 @@ def inspect_class(class_):
|
||||
for name, attr in inspect.getmembers(class_, iswsattr):
|
||||
if name.startswith('_'):
|
||||
continue
|
||||
if inspect.isroutine(attr):
|
||||
continue
|
||||
|
||||
if isinstance(attr, wsattr):
|
||||
attrdef = attr
|
||||
|
Loading…
Reference in New Issue
Block a user