Skip to content

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

Merged
merged 2 commits into from
Jul 25, 2022
Merged

TYP: pandas/plotting annotations from pandas-stubs #47827

merged 2 commits into from
Jul 25, 2022

Conversation

twoertwein
Copy link
Member

Copied annotations from pandas-stubs when pandas has no annotations

Copy link
Member

@simonjayhawkins simonjayhawkins left a 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

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Jul 23, 2022
@simonjayhawkins simonjayhawkins added this to the 1.5 milestone Jul 23, 2022
@@ -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_]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why make this change?

Copy link
Member Author

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

ax: Axes | None = None,
color: list[str] | tuple[str, ...] | None = None,
use_columns: bool = False,
xticks: Sequence | None = None,
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

Copy link
Contributor

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mroeschke mroeschke merged commit 4d7cfc4 into pandas-dev:main Jul 25, 2022
@mroeschke
Copy link
Member

Thanks @twoertwein

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants