Skip to content

Commit e222f52

Browse files
committed
Fix type hints
1 parent 1aaff78 commit e222f52

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

pygmt/helpers/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -891,12 +891,10 @@ def sequence_join(
891891
if unit == "generic":
892892
_values.append(str(int(item)))
893893
else:
894-
_values.append(
895-
str(item.astype(f"timedelta64[{unit}]").astype(int))
896-
)
894+
_values.append(str(item.astype(f"timedelta64[{unit}]").astype(int)))
897895
elif " " in str(item):
898896
_values.append(
899-
np.datetime_as_string(np.asarray(item, dtype="datetime64"))
897+
np.datetime_as_string(np.asarray(item, dtype="datetime64")) # type: ignore[arg-type]
900898
)
901899
else:
902900
_values.append(str(item))

0 commit comments

Comments
 (0)