-
-
Notifications
You must be signed in to change notification settings - Fork 157
type *core/base.pyi, remove SelectionMixin
#1567
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,10 +40,6 @@ | |
| _AggRetType = DataFrame | Series | ||
|
|
||
|
|
||
| def test_props() -> None: | ||
| check(assert_type(DF.resample("ME").obj, DataFrame), DataFrame) | ||
|
|
||
|
|
||
| def test_iter() -> None: | ||
| assert_type(iter(DF.resample("ME")), Iterator[tuple[Hashable, DataFrame]]) | ||
| for v in DF.resample("ME"): | ||
|
|
@@ -203,7 +199,7 @@ def j( | |
| kw: tuple[int], | ||
| ) -> DataFrame: | ||
| assert isinstance(res, DatetimeIndexResampler) | ||
| return res.obj | ||
| return res.obj # type: ignore[return-value] # pyright: ignore[reportReturnType] | ||
|
|
||
| check( | ||
| assert_type(DF.resample("ME").pipe(j, 1, [1.0], arg2="hi", kw=(1,)), DataFrame), | ||
|
|
@@ -263,7 +259,7 @@ def j( | |
|
|
||
| def k(x: int, t: "DatetimeIndexResampler[DataFrame]") -> DataFrame: | ||
| assert isinstance(x, int) | ||
| return t.obj | ||
| return t.obj # type: ignore[return-value] # pyright: ignore[reportReturnType] | ||
|
||
|
|
||
| check(assert_type(DF.resample("ME").pipe((k, "t"), 1), DataFrame), DataFrame) | ||
|
|
||
|
|
@@ -281,10 +277,6 @@ def f(val: Series) -> Series: | |
| check(assert_type(DF.resample("ME").transform(f), DataFrame), DataFrame) | ||
|
|
||
|
|
||
| def test_props_series() -> None: | ||
| check(assert_type(S.resample("ME").obj, Series), Series) | ||
|
|
||
|
|
||
| def test_iter_series() -> None: | ||
| for v in S.resample("ME"): | ||
| check(assert_type(v, tuple[Hashable, Series]), tuple) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is not documented is there a good reason to keep a function like this? The user should not in theory access the field anyway.