Skip to content

Commit 6b7017b

Browse files
committed
Fix a type hint issue
1 parent 18057c1 commit 6b7017b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/clib/conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _to_numpy(data: Any) -> np.ndarray:
201201
numpy_dtype = getattr(dtype, "numpy_dtype", None)
202202
if Version(pd.__version__) < Version("2.1"):
203203
# In pandas 2.0, dtype.numpy_type is dtype("O").
204-
numpy_dtype = np.dtype(f"M8[{dtype.pyarrow_dtype.unit}]")
204+
numpy_dtype = np.dtype(f"M8[{dtype.pyarrow_dtype.unit}]") # type: ignore[assignment]
205205

206206
array = np.ascontiguousarray(data, dtype=numpy_dtype)
207207

0 commit comments

Comments
 (0)