We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d4fa4f commit aa30be5Copy full SHA for aa30be5
_plotly_utils/basevalidators.py
@@ -29,7 +29,7 @@ def to_non_numpy_type(np, v):
29
Python datetimes only support microsecond precision. So we cast
30
datetime64[ns] to datetime64[us] to ensure it remains a datetime.
31
32
- Should only be used in contexts where we already know `np` is defined
+ Should only be used in contexts where we already know `np` is defined.
33
"""
34
if hasattr(v, "dtype") and v.dtype == np.dtype("datetime64[ns]"):
35
return v.astype("datetime64[us]").item()
0 commit comments