From b606bdfaf1587a7ebeca00552ad30644e11c40ff Mon Sep 17 00:00:00 2001 From: Vamsi Verma Date: Mon, 10 Oct 2022 11:02:50 +0000 Subject: [PATCH 1/2] pyllint: disable invalid-repr-returned in Series.__repr__ --- pandas/core/series.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/core/series.py b/pandas/core/series.py index f0327dfd39134..0494f872841b5 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1601,6 +1601,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) From 1c25eae77f419c82de03850fd0ea7337be67a211 Mon Sep 17 00:00:00 2001 From: Vamsi Verma Date: Mon, 10 Oct 2022 11:26:55 +0000 Subject: [PATCH 2/2] remove invalid-repr-returned from pyproject.toml --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a1feba998bc50..fa71c14547c62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,6 @@ disable = [ "bad-super-call", "c-extension-no-member", "import-error", - "invalid-repr-returned", "invalid-unary-operand-type", "misplaced-bare-raise", "no-member",