classmethods were excluded from docs, hide self & cls arguments for functions and class methods,

made some rna ui funcs not display as optional.
This commit is contained in:
2009-12-26 17:49:08 +00:00
parent 24ab5416da
commit 5689ab3975
3 changed files with 30 additions and 9 deletions

View File

@@ -110,7 +110,7 @@ class InfoStructRNA:
import types
functions = []
for identifier, attr in self._get_py_visible_attrs():
if type(attr) is types.FunctionType:
if type(attr) in (types.FunctionType, types.MethodType):
functions.append((identifier, attr))
return functions