Unclear error statement printed when `python ./scripts/validate_docstrings.py --errors=PR02` is run
See original GitHub issueWhen I run python ./scripts/validate_docstrings.py --errors=PR02
, one of the error statements printed is /home/pandas/pandas/core/generic.py:1092:PR02:pandas.DataFrame.rename_axis:Unknown parameters {'inplace'}.
However in the generic.py file, “inplace” is declared in the function, overloaded functions, and the doc-string, so I was unsure what the error statement meant.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
8. Errors and Exceptions — Python 3.11.1 documentation
The last line of the error message indicates what happened. Exceptions come in different types, and the type is printed as part of...
Read more >why my errors come first and print statements come second in ...
This behavior happens because stdout is buffered and stderr is not, for performance reasons. It means that there can be delay when you...
Read more >Invalid Syntax in Python: Common Reasons for SyntaxError
The error message that comes after the exception type SyntaxError , which can provide information to help you determine the problem. In the...
Read more >How to Print to the Standard Error Stream in Python
Printing to Python's standard error stream will help you better manage handling any errors ... print ( 'Error message' , file = sys.stderr) ......
Read more >Python: How to Print Without Newline? - STechies
As Python prints every output on a different line by default, you might get confused. The Problem. Printing the output is probably the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks - where is it needed? Aren’t the overloads enough? e.g.
That’s a good point! The overloads might actually be enough. When a function has overloads, the implementation is not actually used for type checking (there might be some consistency checks between overloads and implementation but you could add an ignore comment if needed).