Skip to content

Commit caf9c17

Browse files
added type hints for div and rdiv methods of Series which are only added at runtime
1 parent db60ab6 commit caf9c17

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/core/series.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
168168
base.IndexOpsMixin.hasnans.func, doc=base.IndexOpsMixin.hasnans.__doc__
169169
)
170170
_data: SingleBlockManager
171+
div: Callable[["Series"], "Series"]
172+
rdiv: Callable[["Series"], "Series"]
171173

172174
# ----------------------------------------------------------------------
173175
# Constructors

setup.cfg

Lines changed: 0 additions & 3 deletions
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)