From 136a06285f0e953f65dc432a4dba1ff3d1f781ee Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 18 May 2022 21:43:38 +1000 Subject: Fix T88792: WindowManager.clipboard missing in Python API docs Support RNA types using the Py/C-API PyGetSetDef defined properties. Currently `WindowManager.clipboard` is the only instance of this. --- release/scripts/modules/rna_info.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'release/scripts') diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py index b009cc4fefe..687f3c95d0b 100644 --- a/release/scripts/modules/rna_info.py +++ b/release/scripts/modules/rna_info.py @@ -206,6 +206,14 @@ class InfoStructRNA: functions.append((identifier, attr)) return functions + def get_py_c_properties_getset(self): + import types + properties_getset = [] + for identifier, descr in self.py_class.__dict__.items(): + if type(descr) == types.GetSetDescriptorType: + properties_getset.append((identifier, descr)) + return properties_getset + def __str__(self): txt = "" -- cgit v1.2.3