-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYP: pandas/plotting annotations from pandas-stubs #47827
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
Conversation
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.
Thanks @twoertwein cc @Dr-Irv
@@ -444,7 +444,7 @@ def dropna(self: ArrowExtensionArrayT) -> ArrowExtensionArrayT: | |||
else: | |||
return type(self)(pc.drop_null(self._data)) | |||
|
|||
def isin(self: ArrowExtensionArrayT, values) -> npt.NDArray[np.bool_]: | |||
def isin(self, values) -> npt.NDArray[np.bool_]: |
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.
Why make this change?
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.
This TypeVar is useless (my local pyright version complained about it). I'll bump pyright on the CI
pandas/plotting/_misc.py
Outdated
ax: Axes | None = None, | ||
color: list[str] | tuple[str, ...] | None = None, | ||
use_columns: bool = False, | ||
xticks: Sequence | None = None, |
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.
based on the docs, this should be list | tuple | None
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.
changed
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.
LGTM
Thanks @twoertwein |
Copied annotations from pandas-stubs when pandas has no annotations