8000 TYP: CallableDynamicDoc by twoertwein · Pull Request #46786 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TYP: CallableDynamicDoc #46786

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

Merged
merged 6 commits into from
May 26, 2022
Merged
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
tighten NDFrameIndexerBase
  • Loading branch information
twoertwein committed May 8, 2022
commit 05dd972cab66f49c2a0d5d359265d03287f71ea7
15 changes: 11 additions & 4 deletions pandas/_libs/indexing.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
from typing import Any
from typing import (
Generic,
TypeVar,
)

class NDFrameIndexerBase:
from pandas.core.indexing import IndexingMixin

_IndexingMixinT = TypeVar("_IndexingMixinT", bound=IndexingMixin)

class NDFrameIndexerBase(Generic[_IndexingMixinT]):
name: str
obj: Any
obj: _IndexingMixinT

def __init__(self, name: str, obj: Any) -> None: ...
def __init__(self, name: str, obj: _IndexingMixinT) -> None: ...
@property
def ndim(self) -> int: ...
0