Skip to content

Commit

Permalink
Fix a type hint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Dec 12, 2024
1 parent 18057c1 commit 6b7017b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmt/clib/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _to_numpy(data: Any) -> np.ndarray:
numpy_dtype = getattr(dtype, "numpy_dtype", None)
if Version(pd.__version__) < Version("2.1"):
# In pandas 2.0, dtype.numpy_type is dtype("O").
numpy_dtype = np.dtype(f"M8[{dtype.pyarrow_dtype.unit}]")
numpy_dtype = np.dtype(f"M8[{dtype.pyarrow_dtype.unit}]") # type: ignore[assignment]

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

Expand Down

0 comments on commit 6b7017b

Please sign in to comment.