From 5922a8c18393059c0b9d3e9e41efa82eb9767d58 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 6045d6a654508a..2ac6e87de71edb 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -185,6 +185,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 46e6b88f8018aa..9aa44897836027 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