@@ -190,7 +190,9 @@ def _check_encoding(
190
190
191
191
def data_kind (
192
192
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
+ ]:
194
196
r"""
195
197
Check the kind of data that is provided to a module.
196
198
@@ -203,11 +205,10 @@ def data_kind(
203
205
- None, bool, int or float type representing an optional arguments
204
206
- a geo-like Python object that implements ``__geo_interface__`` (e.g.,
205
207
geopandas.GeoDataFrame or shapely.geometry)
206
- * a :class:`io.StringIO` object
207
208
208
209
Parameters
209
210
----------
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}
211
212
Pass in either a file name or :class:`pathlib.Path` to an ASCII data
212
213
table, an :class:`xarray.DataArray`, a 1-D/2-D
213
214
{table-classes} or an option argument.
0 commit comments