Fix: PyDocs typing issue with lists
Fixed use of lists using multiple arguments - `list` only support a single argument. Noticed working with fake-bpy-module - providing multiple arguments to `list` resulted in typing error (e.g. "Too many type arguments provided for "list"; expected 1 but received 2"). Pull Request: https://projects.blender.org/blender/blender/pulls/134663
This commit is contained in:
committed by
Pratik Borhade
parent
8ad740ae95
commit
b9bbf48841
@@ -1469,7 +1469,7 @@ PyDoc_STRVAR(
|
||||
" :arg boxes: list of boxes, each box is a list where the first 4 items are "
|
||||
"[X, Y, width, height, ...] other items are ignored. "
|
||||
"The X & Y values in this list are modified to set the packed positions.\n"
|
||||
" :type boxes: list[list[float, float, float, float, ...]]\n"
|
||||
" :type boxes: list[list[float]]\n"
|
||||
" :return: The width and height of the packed bounding box.\n"
|
||||
" :rtype: tuple[float, float]\n");
|
||||
static PyObject *M_Geometry_box_pack_2d(PyObject * /*self*/, PyObject *boxlist)
|
||||
|
||||
@@ -980,7 +980,7 @@ PyDoc_STRVAR(
|
||||
" :arg exponent: The exponent for Minkowski distance metric.\n"
|
||||
" :type exponent: float\n"
|
||||
" :return: A list of distances to the four closest features and their locations.\n"
|
||||
" :rtype: list[list[float], list[:class:`mathutils.Vector`]]\n");
|
||||
" :rtype: list[list[float] | list[:class:`mathutils.Vector`]]\n");
|
||||
static PyObject *M_Noise_voronoi(PyObject * /*self*/, PyObject *args, PyObject *kw)
|
||||
{
|
||||
static const char *kwlist[] = {"", "distance_metric", "exponent", nullptr};
|
||||
|
||||
Reference in New Issue
Block a user