File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ def fmt_docstring(module_func):
396396
397397 Examples
398398 --------
399-
399+ >>> from pygmt.helpers import fmt_docstring
400400 >>> @fmt_docstring
401401 ... @use_alias(R="region", J="projection")
402402 ... def gmtinfo(**kwargs):
@@ -407,11 +407,11 @@ def fmt_docstring(module_func):
407407 ... ----------
408408 ... data
409409 ... Pass in either a file name to an ASCII data table, a 2-D
410- ... {table-classes }.
411- ... {region}
412- ... {projection}
410+ ... ${table_classes }.
411+ ... $ {region}
412+ ... $ {projection}
413413 ...
414- ... {aliases}
414+ ... $ {aliases}
415415 ... '''
416416 ... pass
417417 >>> print(gmtinfo.__doc__)
@@ -452,7 +452,7 @@ def fmt_docstring(module_func):
452452 aliases .append (f" - { arg } = { alias } " )
453453 filler_text ["aliases" ] = "\n " .join (aliases )
454454
455- filler_text ["table-classes " ] = (
455+ filler_text ["table_classes " ] = (
456456 ":class:`numpy.ndarray`, a :class:`pandas.DataFrame`, an\n "
457457 " :class:`xarray.Dataset` made up of 1-D :class:`xarray.DataArray`\n "
458458 " data variables, or a :class:`geopandas.GeoDataFrame` containing the\n "
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def select(
8787 ----------
8888 data
8989 Pass in either a file name to an ASCII data table, a 2-D
90- ${table-classes }.
90+ ${table_classes }.
9191 ${output_type}
9292 ${outfile}
9393 ${area_thresh}
You can’t perform that action at this time.
0 commit comments