You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the docstrings, parameters are documented like this:
Parameters
----------
name : str
The name of the person.
It is common that the space before the colon is not present, and in that case validate_docstrings.py reports:
Parameter "name: str" has no type
Which is confusing, and new contributors may have problems understanding what the problem is. We should validate this specific problem, and report an appropriate error message like A space is required before the colon separating the parameter name and type.
This needs to be tested (in scripts/tests/test_validate_docstrings.py).
The text was updated successfully, but these errors were encountered:
* upstream/master:
BUG: to_html misses truncation indicators (...) when index=False (pandas-dev#22786)
API/DEPR: replace "raise_conflict" with "errors" for df.update (pandas-dev#23657)
BUG: Append DataFrame to Series with dateutil timezone (pandas-dev#23685)
CLN/CI: Catch that stderr-warning! (pandas-dev#23706)
ENH: Allow for join between two multi-index dataframe instances (pandas-dev#20356)
Ensure Index._data is an ndarray (pandas-dev#23628)
DOC: flake8-per-pr for windows users (pandas-dev#23707)
DOC: Handle exceptions when computing contributors. (pandas-dev#23714)
DOC: Validate space before colon docstring parameters pandas-dev#23483 (pandas-dev#23506)
BUG-22984 Fix truncation of DataFrame representations (pandas-dev#22987)
tm9k1
pushed a commit
to tm9k1/pandas
that referenced
this issue
Nov 19, 2018
In the docstrings, parameters are documented like this:
It is common that the space before the colon is not present, and in that case
validate_docstrings.py
reports:Parameter "name: str" has no type
Which is confusing, and new contributors may have problems understanding what the problem is. We should validate this specific problem, and report an appropriate error message like
A space is required before the colon separating the parameter name and type
.This needs to be tested (in
scripts/tests/test_validate_docstrings.py
).The text was updated successfully, but these errors were encountered: