Skip to content

Commit

Permalink
added type hints for div and rdiv methods of Series which are only ad…
Browse files Browse the repository at this point in the history
…ded at runtime
  • Loading branch information
SaturnFromTitan committed Nov 24, 2019
1 parent 35029d2 commit 5922a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5922a8c

Please sign in to comment.