-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Add more dtype details to docstring standard doc #14664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
submit a PR? |
Makes sense +1 |
OK, I found the discussion then :) I am a bit in trouble with (2). It is even more confusing with something like
|
Going with
|
I think we already went for maybe That being said, I feel like specifying dtypes is mostly useful on private APIs, where we can be slightly more flexible on the style. IMO most user-facing docs shouldn't worry too much about dtypes. For example, I don't think |
What if we have a list that can have multiple types, like a list of tuples:
or
|
I would say second one |
I would be open to changing it, to handle the situation where we have the dtype, and the shape of an array.
The dtype is pretty far from the ndarray now. @glemaitre If we use the second one then:
That feels like there is one two many "of"s. We kind of need two delimiters, one for type and another for shape. |
We can go case by case? How many instances of these do we have? How many of them are public docs? |
I'm not sure which part this sets out to discuss. When None is the default,
sometimes it means something quite different to "none" and that deserves
clarifying.
|
I think here it's only about the dtype, I guess. And for that I personally prefer the |
@jnothman This discussion is around the dtype. In the case of None, we could do one of the following:
|
Continuing #12356
Related to #14640
None
is the default, we can just set it as default:CC @adrinjalali
The text was updated successfully, but these errors were encountered: