diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 453c163792fa4..5487dc19338da 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -160,7 +160,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.errors.DuplicateLabelError SA01" \ -i "pandas.errors.IntCastingNaNError SA01" \ -i "pandas.errors.InvalidIndexError SA01" \ - -i "pandas.errors.InvalidVersion SA01" \ -i "pandas.errors.NullFrequencyError SA01" \ -i "pandas.errors.NumExprClobberingError SA01" \ -i "pandas.errors.NumbaUtilError SA01" \ diff --git a/pandas/util/version/__init__.py b/pandas/util/version/__init__.py index b5d975a0db1d8..bd741140f6542 100644 --- a/pandas/util/version/__init__.py +++ b/pandas/util/version/__init__.py @@ -114,6 +114,14 @@ class InvalidVersion(ValueError): """ An invalid version was found, users should refer to PEP 440. + The ``InvalidVersion`` exception is raised when a version string is + improperly formatted. Pandas uses this exception to ensure that all + version strings are PEP 440 compliant. + + See Also + -------- + util.version.Version : Class for handling and parsing version strings. + Examples -------- >>> pd.util.version.Version("1.")