You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I seem to be unable to get a tuple defined in the Arguments block of the docstring using numpy style docstrings with Napoleon. (I did not try using Google style).
I have tried a variety of different formating styles. Part of the problem is that I am unable to find a definitive method of defining a tuple in the docstring.
eg.
Args:
input_image : string
The filename of the image file to crop
output_image : string
The filename of the save file
(start_x, start_y) : tuple(integer, integer)
The x and y (Integers) coords to start cropping from
or
(start_x, start_y) : tuple
The x and y (Integers) coords to start cropping from
or
(start_x, start_y) : (integer, integer)
The x and y (Integers) coords to start cropping from
etc
In every case, I am seeing:
W: 95, 0: "tuple" missing or differing in parameter documentation (missing-param-doc)
W: 95, 0: "input_image, output_image, tuple" missing or differing in parameter type documentation (missing-type-doc)
Would it be possible for someone to give some guidance regarding tuple parameters?
The text was updated successfully, but these errors were encountered:
First, if you're using the NumPy style, you'll want to start the Args section with an underline, like so:
Args
----
input_image : string
The filename of the image file to crop
Second, NumPy (and Google) style only support a single name for each parameter, so you'll want to do something like this:
Args
----
input_image : string
The filename of the image file to crop
output_image : string
The filename of the save file
start_point : tuple(int, int)
The x and y (Integers) coords to start cropping from
or if you are using a namedtuple like the example here, you could do something like this:
Args
----
input_image : string
The filename of the image file to crop
output_image : string
The filename of the save file
start_point : Point
The x and y (Integers) coords to start cropping from
I seem to be unable to get a tuple defined in the Arguments block of the docstring using numpy style docstrings with Napoleon. (I did not try using Google style).
I have tried a variety of different formating styles. Part of the problem is that I am unable to find a definitive method of defining a tuple in the docstring.
eg.
Args:
input_image : string
The filename of the image file to crop
output_image : string
The filename of the save file
(start_x, start_y) : tuple(integer, integer)
The x and y (Integers) coords to start cropping from
or
or
etc
In every case, I am seeing:
W: 95, 0: "tuple" missing or differing in parameter documentation (missing-param-doc)
W: 95, 0: "input_image, output_image, tuple" missing or differing in parameter type documentation (missing-type-doc)
Would it be possible for someone to give some guidance regarding tuple parameters?
The text was updated successfully, but these errors were encountered: