8000 TYP: libinterval by jbrockmendel · Pull Request #41059 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TYP: libinterval #41059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove repr from pyi
  • Loading branch information
jbrockmendel committed Apr 24, 2021
commit f31dab5f91581dd1dc7176d6b61428afa0352ed3
5 changes: 1 addition & 4 deletions pandas/_libs/interval.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class Interval(IntervalMixin):
def __init__(self, left, right, closed: str = ...): ...

def __contains__(self, key) -> bool: ...
def __repr__(self) -> str: ...
def __str__(self) -> str: ...
def __add__(self, y): ...
def __sub__(self, y): ...
Expand All @@ -60,7 +59,7 @@ def intervals_to_interval_bounds(


class IntervalTree(IntervalMixin):
def __init__(self, left, right, closed='right', leaf_size=100): ...
def __init__(self, left, right, closed=..., leaf_size=...): ...

@property
def left_sorter(self) -> np.ndarray: ... # np.ndarray[np.intp]
Expand All @@ -87,6 +86,4 @@ class IntervalTree(IntervalMixin):
np.ndarray, # np.ndarray[np.intp]
]: ...

def __repr__(self) -> str: ...

def clear_mapping(self) -> None: ...
0