Skip to content

Commit 5922a8c

Browse files
added type hints for div and rdiv methods of Series which are only added at runtime
1 parent 35029d2 commit 5922a8c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/core/series.py

+2
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
185185
base.IndexOpsMixin.hasnans.func, doc=base.IndexOpsMixin.hasnans.__doc__
186186
)
187187
_data: SingleBlockManager
188+
div: Callable[["Series"], "Series"]
189+
rdiv: Callable[["Series"], "Series"]
188190

189191
# ----------------------------------------------------------------------
190192
# Constructors

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,3 @@ ignore_errors=True
153153

154154
[mypy-pandas.tests.scalar.period.test_period]
155155
ignore_errors=True
156-
157-
[mypy-pandas.tests.series.test_operators]
158-
ignore_errors=True

0 commit comments

Comments
 (0)