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 44806e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
Copy input data.
"""

div: Callable[["Series"], "Series"]
rdiv: Callable[["Series"], "Series"]

_metadata: List[str] = []
_accessors = {"dt", "cat", "str", "sparse"}
_deprecations = (
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 44806e1

Please sign in to comment.