diff --git a/pandas/core/series.py b/pandas/core/series.py index 0c104111f9db4..839f11c83f028 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1556,6 +1556,7 @@ def __repr__(self) -> str: """ Return a string representation for a particular Series. """ + # pylint: disable=invalid-repr-returned repr_params = fmt.get_series_repr_params() return self.to_string(**repr_params) diff --git a/pyproject.toml b/pyproject.toml index 397f74ddab71a..3a291b0356c5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,6 @@ max-line-length = 88 disable = [ "abstract-class-instantiated", "import-error", - "invalid-repr-returned", "invalid-unary-operand-type", "no-member", "no-name-in-module",