PyDoc: use argument "type" to list valid types for class registration

Ref: !132482
This commit is contained in:
nutti
2024-12-31 18:17:28 +09:00
committed by Campbell Barton
parent 016167e8f3
commit d42a9ae406

View File

@@ -9718,13 +9718,13 @@ PyDoc_STRVAR(
"\n"
" Register a subclass of a Blender type class.\n"
"\n"
" :arg cls: Blender type class in:\n"
" :class:`bpy.types.Panel`, :class:`bpy.types.UIList`,\n"
" :class:`bpy.types.Menu`, :class:`bpy.types.Header`,\n"
" :class:`bpy.types.Operator`, :class:`bpy.types.KeyingSetInfo`,\n"
" :class:`bpy.types.RenderEngine`, :class:`bpy.types.AssetShelf`,\n"
" :class:`bpy.types.FileHandler`\n"
" :type cls: type\n"
" :arg cls: Registerable Blender class type.\n"
" :type cls: type[\n"
" :class:`bpy.types.Panel` | :class:`bpy.types.UIList` | \n"
" :class:`bpy.types.Menu` | :class:`bpy.types.Header` | \n"
" :class:`bpy.types.Operator` | :class:`bpy.types.KeyingSetInfo` | \n"
" :class:`bpy.types.RenderEngine` | :class:`bpy.types.AssetShelf` | \n"
" :class:`bpy.types.FileHandler`]\n"
" :raises ValueError:\n"
" if the class is not a subclass of a registerable blender class.\n"
"\n"
@@ -9906,7 +9906,12 @@ PyDoc_STRVAR(
" :arg cls: Blender type class, \n"
" see :mod:`bpy.utils.register_class` for classes which can \n"
" be registered.\n"
" :type cls: type\n"
" :type cls: type[\n"
" :class:`bpy.types.Panel` | :class:`bpy.types.UIList` | \n"
" :class:`bpy.types.Menu` | :class:`bpy.types.Header` | \n"
" :class:`bpy.types.Operator` | :class:`bpy.types.KeyingSetInfo` | \n"
" :class:`bpy.types.RenderEngine` | :class:`bpy.types.AssetShelf` | \n"
" :class:`bpy.types.FileHandler`]\n"
"\n"
" .. note::\n"
"\n"