1616
1717COMMON_DOCSTRINGS = {
1818 "area_thresh" : r"""
19- area_thresh : int or float or str
19+ area_thresh : float or str
2020 *min_area*\ [/*min_level*/*max_level*][**+a**\[**g**\|\ **i**]\
2121 [**s**\|\ **S**]][**+l**\|\ **r**][**+p**\ *percent*].
2222 Features with an area smaller than *min_area* in km\ :sup:`2` or of
105105 that do not match the pattern. Append **i** for case insensitive
106106 matching. This does not apply to headers or segment headers.""" ,
107107 "frame" : r"""
108- frame : bool or str or list
108+ frame : bool, str, or list
109109 Set map boundary
110110 :doc:`frame and axes attributes </tutorials/basics/frames>`. """ ,
111111 "gap" : r"""
247247 used then the columns given to ``outcols`` correspond to the
248248 order after the ``incols`` selection has taken place.""" ,
249249 "panel" : r"""
250- panel : bool or int or list
250+ panel : bool, int, or list
251251 [*row,col*\|\ *index*].
252252 Select a specific subplot panel. Only allowed when in subplot
253253 mode. Use ``panel=True`` to advance to the next panel in the
298298 more of the columns equal NaN [Default skips record only
299299 if values in all specified *cols* equal NaN].""" ,
300300 "spacing" : r"""
301- spacing : int or float or str or list or tuple
301+ spacing : float, str, or list
302302 *x_inc*\ [**+e**\|\ **n**][/\ *y_inc*\ [**+e**\|\ **n**]].
303303 *x_inc* [and optionally *y_inc*] is the grid spacing.
304304
329329 the registration have already been initialized; use ``spacing`` and
330330 ``registration`` to override these values.""" ,
331331 "transparency" : r"""
332- transparency : int or float
332+ transparency : float
333333 Set transparency level, in [0-100] percent range
334334 [Default is ``0``, i.e., opaque].
335335 Only visible when PDF or raster format output is selected.
@@ -400,7 +400,7 @@ def fmt_docstring(module_func):
400400 ...
401401 ... Parameters
402402 ... ----------
403- ... data : str or {table-like}
403+ ... data : str, {table-like}
404404 ... Pass in either a file name to an ASCII data table, a 2-D
405405 ... {table-classes}.
406406 ... {region}
@@ -416,7 +416,7 @@ def fmt_docstring(module_func):
416416 <BLANKLINE>
417417 Parameters
418418 ----------
419- data : str or numpy.ndarray or pandas.DataFrame or xarray.Dataset or geo...
419+ data : str, numpy.ndarray, pandas.DataFrame, xarray.Dataset, or geo...
420420 Pass in either a file name to an ASCII data table, a 2-D
421421 :class:`numpy.ndarray`, a :class:`pandas.DataFrame`, an
422422 :class:`xarray.Dataset` made up of 1-D :class:`xarray.DataArray`
@@ -444,13 +444,15 @@ def fmt_docstring(module_func):
444444 aliases .append (f"- { arg } = { alias } " )
445445 filler_text ["aliases" ] = "\n " .join (aliases )
446446
447- filler_text ["table-like" ] = " or " .join (
448- [
449- "numpy.ndarray" ,
450- "pandas.DataFrame" ,
451- "xarray.Dataset" ,
452- "geopandas.GeoDataFrame" ,
453- ]
447+ filler_text ["table-like" ] = (
448+ ", " .join (
449+ [
450+ "numpy.ndarray" ,
451+ "pandas.DataFrame" ,
452+ "xarray.Dataset" ,
453+ ]
454+ )
455+ + ", or geopandas.GeoDataFrame"
454456 )
455457 filler_text ["table-classes" ] = (
456458 ":class:`numpy.ndarray`, a :class:`pandas.DataFrame`, an\n "
0 commit comments