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 26, 2019
1 parent db60ab6 commit caf9c17
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 @@ -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
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 caf9c17

Please sign in to comment.