File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -1281,18 +1281,12 @@ def _add_data_doc(docstring, replace_names):
12811281
12821282 data_doc = ("""\
12831283 If given, all parameters also accept a string ``s``, which is
1284- interpreted as ``data[s]`` (unless this raises an exception).
1285-
1286- Objects passed as **data** must support item access (``data[s]``) and
1287- membership test (``s in data``)."""
1284+ interpreted as ``data[s]`` (unless this raises an exception)."""
12881285 if replace_names is None else f"""\
1289- If given, the following parameters also accept a string ``s``, which
1290- is interpreted as ``data[s]`` (unless this raises an exception):
1291-
1292- { ', ' .join (map ('*{}*' .format , replace_names ))}
1286+ If given, the following parameters also accept a string ``s``, which is
1287+ interpreted as ``data[s]`` (unless this raises an exception):
12931288
1294- Objec
5550
ts passed as **data** must support item access (``data[s]``) and
1295- membership test (``s in data``).""" )
1289+ { ', ' .join (map ('*{}*' .format , replace_names ))} """ )
12961290 # using string replacement instead of formatting has the advantages
12971291 # 1) simpler indent handling
12981292 # 2) prevent problems with formatting characters '{', '%' in the docstring
You can’t perform that action at this time.
0 commit comments