-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TYP: fix reportInvalidTypeVarUse from pyright #42367
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 all commits
f0383cd
8202866
3925744
eca8fd1
22ae867
4ab71a3
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 |
---|---|---|
|
@@ -1337,7 +1337,7 @@ def _make_unique_kwarg_list( | |
|
||
|
||
def relabel_result( | ||
result: FrameOrSeries, | ||
result: DataFrame | Series, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we not able to use the alias, this is the entire point of it (i mean if we want to switch exclusively to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be helpful to rename There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ahh ok, then lets do that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in this PR or a followup? I don't mind adding more (I'm not the one reviewing it) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. follow-up ok. we have the naming for historical reasons and IIRC other reviewers have strong views on the naming, so IMO best not to mix in anything that could be controversial. |
||
func: dict[str, list[Callable | str]], | ||
columns: Iterable[Hashable], | ||
order: Iterable[int], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -934,9 +934,7 @@ def copy(self: IntervalArrayT) -> IntervalArrayT: | |
def isna(self) -> np.ndarray: | ||
return isna(self._left) | ||
|
||
def shift( | ||
self: IntervalArrayT, periods: int = 1, fill_value: object = None | ||
) -> IntervalArray: | ||
def shift(self, periods: int = 1, fill_value: object = None) -> IntervalArray: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are these not valid? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here: |
||
if not len(self) or periods == 0: | ||
return self.copy() | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.