8000 TYP: Typing for ExtensionArray.__getitem__ by Dr-Irv · Pull Request #41258 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TYP: Typing for ExtensionArray.__getitem__ #41258

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 26 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6c83511
TYP: ExtensionArray.__getitem__
Dr-Irv May 1, 2021
0c8d648
make base class use PositionalIndexer2D
Dr-Irv May 2, 2021
c43eadc
merge with master
Dr-Irv May 16, 2021
94ced76
fix up getitem typing for DateTimeOps
Dr-Irv May 16, 2021
4772f8e
Merge remote-tracking branch 'upstream/master' into extgetitem
Dr-Irv May 23, 2021
2773c8b
Make getitem on EA accept 1D, and change declaration for 2D arrays
Dr-Irv May 23, 2021
b7f2485
Merge branch 'master' into extgetitem
Dr-Irv May 31, 2021
01c0cf5
casting in datetimelike, allow NA in string arrow
Dr-Irv May 31, 2021
3b38de2
fix string arrow NA type
Dr-Irv May 31, 2021
b25d5a3
Merge remote-tracking branch 'upstream/master' into extgetitem
Dr-Irv Jun 13, 2021
d7c545d
change an overload in mixins to use NDArrayBackedExtensionArrayT
Dr-Irv Jun 13, 2021
076e434
categorical returns Any, interval for NA, put back libmissing in stri…
Dr-Irv Jun 14, 2021
01c1a3f
Merge remote-tracking branch 'upstream/master' into extgetitem
Dr-Irv Jul 6, 2021
738ec89
merge with master
Dr-Irv Jul 8, 2021
c5e300c
Merge remote-tracking branch 'upstream/master' into extgetitem
Dr-Irv Jul 8, 2021
1dbb668
change ignore messages
Dr-Irv Jul 8, 2021
3e19841
Merge remote-tracking branch 'upstream/master' into extgetitem
Dr-Irv Jul 14, 2021
73680ac
8000 WIP: merge with master
Dr-Irv Jul 26, 2021
adf3a73
resolve conflicts in core/internals/blocks.py
Dr-Irv Jul 26, 2021
6068976
Merge remote-tracking branch 'upstream/master' into extgetitem
Dr-Irv Jul 28, 2021
0f36e5f
merge with master 0803
Dr-Irv Aug 3, 2021
9557cac
merge with master
Dr-Irv Sep 6, 2021
9a8550d
create types for split of getitem arguments
Dr-Irv Sep 6, 2021
10c454d
merge in delete/searchsorted typing changes
Dr-Irv Sep 6, 2021
a5318bc
merge with astype changes
Dr-Irv Sep 6, 2021
b941732
comments on various indexers in _typing.py
Dr-Irv Sep 6, 2021
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
merge in delete/searchsorted typing changes
  • Loading branch information
Dr-Irv committed Sep 6, 2021
commit 10c454dba42c95dd17d395753f6f35ddc6044f6e
2 changes: 1 addition & 1 deletion pandas/core/arrays/_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import (
TYPE_CHECKING,
Any,
Literal,
Sequence,
TypeVar,
cast,
Expand Down Expand Up @@ -52,7 +53,6 @@
)

if TYPE_CHECKING:
from typing import Literal

from pandas._typing import (
NumpySorter,
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/arrays/period.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
TYPE_CHECKING,
Any,
Callable,
Literal,
Sequence,
)

Expand Down Expand Up @@ -76,7 +77,6 @@
import pandas.core.common as com

if TYPE_CHECKING:
from typing import Literal

from pandas._typing import (
NumpySorter,
Expand Down
6 changes: 6 additions & 0 deletions pandas/core/arrays/sparse/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
TYPE_CHECKING,
Any,
Callable,
Literal,
Sequence,
TypeVar,
cast,
Expand All @@ -35,6 +36,7 @@
Scalar,
ScalarIndexer,
SequenceIndexer,
npt,
)
from pandas.compat.numpy import function as nv
from pandas.errors import PerformanceWarning
Expand Down Expand Up @@ -92,9 +94,13 @@ class ellipsis(Enum):
Ellipsis = "..."

Ellipsis = ellipsis.Ellipsis

from pandas._typing import NumpySorter

else:
ellipsis = type(Ellipsis)


# ----------------------------------------------------------------------------
# Array

Expand Down
2 changes: 1 addition & 1 deletion
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import (
TYPE_CHECKING,
Hashable,
Literal,
TypeVar,
overload,
)
Expand Down Expand Up @@ -47,7 +48,6 @@
from pandas.core.ops import get_op_result_name

if TYPE_CHECKING:
from typing import Literal

from pandas._typing import (
NumpySorter,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0