Skip to content

Commit fe0c638

Browse files
GH1255 Initial commit
1 parent 5eee325 commit fe0c638

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas-stubs/_typing.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from builtins import type as type_t
1+
from builtins import (
2+
str,
3+
type as type_t,
4+
)
25
from collections.abc import (
36
Callable,
47
Hashable,

tests/test_series.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Hashable,
55
Iterable,
66
Iterator,
7-
Mapping,
87
Sequence,
98
)
109
import datetime
@@ -45,7 +44,6 @@
4544
import xarray as xr
4645

4746
from pandas._typing import (
48-
AxesData,
4947
DtypeObj,
5048
Scalar,
5149
)
@@ -3928,7 +3926,6 @@ def test_series_unstack() -> None:
39283926
def test_series_index_type() -> None:
39293927
index = {"a":3, "c": 4}
39303928
lst = [1, 2]
3931-
assert_type(index, Mapping[str, Any])
39323929

39333930
check(assert_type(pd.Series(lst, index=index), "pd.Series[int]"), pd.Series, np.integer)
39343931
check(assert_type(pd.Series([1, 2], index=index.keys()), "pd.Series[int]"), pd.Series, np.integer)

0 commit comments

Comments
 (0)