From caf9c174a9b39093546d27fa0dd657f94f3a62e6 Mon Sep 17 00:00:00 2001 From: Martin Winkel Date: Sun, 24 Nov 2019 22:31:28 +0100 Subject: [PATCH] added type hints for div and rdiv methods of Series which are only added at runtime --- pandas/core/series.py | 2 ++ setup.cfg | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index a9ecf97dad68b..75721dbc54b81 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -168,6 +168,8 @@ class Series(base.IndexOpsMixin, generic.NDFrame): base.IndexOpsMixin.hasnans.func, doc=base.IndexOpsMixin.hasnans.__doc__ ) _data: SingleBlockManager + div: Callable[["Series"], "Series"] + rdiv: Callable[["Series"], "Series"] # ---------------------------------------------------------------------- # Constructors diff --git a/setup.cfg b/setup.cfg index 46e6b88f8018a..9aa4489783602 100644 --- a/setup.cfg +++ b/setup.cfg @@ -153,6 +153,3 @@ ignore_errors=True [mypy-pandas.tests.scalar.period.test_period] ignore_errors=True - -[mypy-pandas.tests.series.test_operators] -ignore_errors=True