[Docs] Python API: dtype.to_numpy()
has documentation for .from_numpy()
#297
Labels
dtype.to_numpy()
has documentation for .from_numpy()
#297
Where is the problem?
https://docs.modular.com/max/api/python/dtype#max.dtype.DType.to_numpy
What can we do better?
Currently reads:
to_numpy()
Converts a NumPy dtype to the corresponding DType.
Parameters:
dtype (np.dtype) – The NumPy dtype to convert.
Returns:
The corresponding DType enum value.
Return type:
DType
Raises:
ValueError – If the input dtype is not supported.
Should read something like:
to_numpy()
Converts a DType to the corresponding NumPy dtype.
Returns:
The corresponding NumPy dtype.
Return type:
np.dtype
Raises:
ValueError – If the input dtype is not supported.
Anything else?
No response
The text was updated successfully, but these errors were encountered: