Skip to content

Commit 3a507a8

Browse files
committed
Fix typos in the return value types of grd2xyz and filter1d
1 parent bf7b9a1 commit 3a507a8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pygmt/src/filter1d.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from typing import Literal
66

7+
import numpy as np
78
import pandas as pd
8-
import xarray as xr
99
from pygmt.clib import Session
1010
from pygmt.exceptions import GMTInvalidInput
1111
from pygmt.helpers import (
@@ -27,7 +27,7 @@ def filter1d(
2727
output_type: Literal["pandas", "numpy", "file"] = "pandas",
2828
outfile: str | None = None,
2929
**kwargs,
30-
) -> pd.DataFrame | xr.DataArray | None:
30+
) -> pd.DataFrame | np.ndarray | None:
3131
r"""
3232
Time domain filtering of 1-D data tables.
3333

pygmt/src/grd2xyz.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from typing import TYPE_CHECKING, Literal
66

7+
import numpy as np
78
import pandas as pd
89
import xarray as xr
910
from pygmt.clib import Session
@@ -42,7 +43,7 @@ def grd2xyz(
4243
output_type: Literal["pandas", "numpy", "file"] = "pandas",
4344
outfile: str | None = None,
4445
**kwargs,
45-
) -> pd.DataFrame | xr.DataArray | None:
46+
) -> pd.DataFrame | np.ndarray | None:
4647
r"""
4748
Convert grid to data table.
4849

0 commit comments

Comments
 (0)