Skip to content

Commit aa30be5

Browse files
emilyklcamdecoster
andauthored
Update _plotly_utils/basevalidators.py
Co-authored-by: Cameron DeCoster <[email protected]>
1 parent 4d4fa4f commit aa30be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_plotly_utils/basevalidators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def to_non_numpy_type(np, v):
2929
Python datetimes only support microsecond precision. So we cast
3030
datetime64[ns] to datetime64[us] to ensure it remains a datetime.
3131
32-
Should only be used in contexts where we already know `np` is defined
32+
Should only be used in contexts where we already know `np` is defined.
3333
"""
3434
if hasattr(v, "dtype") and v.dtype == np.dtype("datetime64[ns]"):
3535
return v.astype("datetime64[us]").item()

0 commit comments

Comments
 (0)