Skip to content
2 changes: 0 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX01 --ignore_functions \
pandas.errors.IncompatibilityWarning \
pandas.errors.InvalidComparison \
pandas.errors.LossySetitemError \
pandas.errors.NoBufferPresent \
pandas.errors.OptionError \
pandas.errors.PerformanceWarning \
Expand Down
8 changes: 8 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,10 @@ class CategoricalConversionWarning(Warning):
class LossySetitemError(Exception):
"""
Raised when trying to do a __setitem__ on an np.ndarray that is not lossless.

Notes
-----
This is an internal error.
"""


Expand All @@ -698,6 +702,10 @@ class NoBufferPresent(Exception):
class InvalidComparison(Exception):
"""
Exception is raised by _validate_comparison_value to indicate an invalid comparison.

Notes
-----
This is an internal error.
"""


Expand Down
2 changes: 2 additions & 0 deletions scripts/validate_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"Styler.template_latex",
"Styler.template_string",
"Styler.loader",
"errors.InvalidComparison",
"errors.LossySetitemError",
}
PRIVATE_CLASSES = ["NDFrame", "IndexOpsMixin"]
ERROR_MSGS = {
Expand Down