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 18057c1 commit 6b7017bCopy full SHA for 6b7017b
pygmt/clib/conversion.py
@@ -201,7 +201,7 @@ def _to_numpy(data: Any) -> np.ndarray:
201
numpy_dtype = getattr(dtype, "numpy_dtype", None)
202
if Version(pd.__version__) < Version("2.1"):
203
# In pandas 2.0, dtype.numpy_type is dtype("O").
204
- numpy_dtype = np.dtype(f"M8[{dtype.pyarrow_dtype.unit}]")
+ numpy_dtype = np.dtype(f"M8[{dtype.pyarrow_dtype.unit}]") # type: ignore[assignment]
205
206
array = np.ascontiguousarray(data, dtype=numpy_dtype)
207
0 commit comments