Docs: Fixes and improvements in API documentation
Fixes several notable mistakes and missing information regarding the API documentation (*.rst). This will allow API stub generators like bpystubgen or fake-bpy-module to produce more accurate result. Differential Revision: https://developer.blender.org/D12639
This commit is contained in:
@@ -8786,7 +8786,7 @@ void pyrna_free_types(void)
|
||||
* - Should still be fixed - Campbell
|
||||
*/
|
||||
PyDoc_STRVAR(pyrna_register_class_doc,
|
||||
".. method:: register_class(cls)\n"
|
||||
".. function:: register_class(cls)\n"
|
||||
"\n"
|
||||
" Register a subclass of a Blender type class.\n"
|
||||
"\n"
|
||||
@@ -8971,7 +8971,7 @@ static int pyrna_srna_contains_pointer_prop_srna(StructRNA *srna_props,
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(pyrna_unregister_class_doc,
|
||||
".. method:: unregister_class(cls)\n"
|
||||
".. function:: unregister_class(cls)\n"
|
||||
"\n"
|
||||
" Unload the Python class from blender.\n"
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user