Fix missing C/Python methods in API docs
The following methods weren't included in API docs. - BlendDataLibraries.load - BlendDataLibraries.write - Text.region_as_string - Text.region_from_string
This commit is contained in:
@@ -198,7 +198,11 @@ class InfoStructRNA:
|
|||||||
for identifier, attr in self._get_py_visible_attrs():
|
for identifier, attr in self._get_py_visible_attrs():
|
||||||
# methods may be python wrappers to C functions
|
# methods may be python wrappers to C functions
|
||||||
attr_func = getattr(attr, "__func__", attr)
|
attr_func = getattr(attr, "__func__", attr)
|
||||||
if type(attr_func) in {types.BuiltinMethodType, types.BuiltinFunctionType}:
|
if (
|
||||||
|
(type(attr_func) in {types.BuiltinMethodType, types.BuiltinFunctionType}) or
|
||||||
|
# Without the `objclass` check, many inherited methods are included.
|
||||||
|
(type(attr_func) == types.MethodDescriptorType and attr_func.__objclass__ == self.py_class)
|
||||||
|
):
|
||||||
functions.append((identifier, attr))
|
functions.append((identifier, attr))
|
||||||
return functions
|
return functions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user