Skip to content

Commit 5f4d21f

Browse files
committed
Updates
1 parent 791e4f6 commit 5f4d21f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pygmt/clib/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ def virtualfile_in( # noqa: PLR0912
17251725
check_kind : str or None
17261726
Used to validate the type of data that can be passed in. Choose
17271727
from 'raster', 'vector', or None. Default is None (no validation).
1728-
data : str or pathlib.Path io.StringIO or xarray.DataArray or {table-like} or None
1728+
data : str or pathlib.Path or xarray.DataArray or {table-like} or None
17291729
Any raster or vector data format. This could be a file name or
17301730
path, a raster grid, a vector matrix/arrays, or other supported
17311731
data input.

pygmt/helpers/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ def _check_encoding(
190190

191191
def data_kind(
192192
data: Any = None, required: bool = True
193-
) -> Literal["arg", "file", "geojson", "grid", "image", "matrix", "vectors"]:
193+
) -> Literal[
194+
"arg", "file", "geojson", "grid", "image", "matrix", "stringio", "vectors"
195+
]:
194196
r"""
195197
Check the kind of data that is provided to a module.
196198
@@ -203,11 +205,10 @@ def data_kind(
203205
- None, bool, int or float type representing an optional arguments
204206
- a geo-like Python object that implements ``__geo_interface__`` (e.g.,
205207
geopandas.GeoDataFrame or shapely.geometry)
206-
* a :class:`io.StringIO` object
207208
208209
Parameters
209210
----------
210-
data : str, io.StringIO, pathlib.PurePath, None, bool, xarray.DataArray or {table-like}
211+
data : str, pathlib.PurePath, None, bool, xarray.DataArray or {table-like}
211212
Pass in either a file name or :class:`pathlib.Path` to an ASCII data
212213
table, an :class:`xarray.DataArray`, a 1-D/2-D
213214
{table-classes} or an option argument.

0 commit comments

Comments
 (0)