Skip to content

TYP: follow-ups to recent PRs #38840

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 4 commits into from
Dec 31, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

No description provided.

@@ -1274,22 +1274,6 @@ def shift(self, periods: int, axis: int = 0, fill_value=None):

return [self.make_block(new_values)]

def _maybe_reshape_where_args(self, values, other, cond, axis):
Copy link
Contributor

Choose a reason for hiding this comment

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

wow!

@jreback jreback added the Typing type annotations, mypy/pyright type checking label Dec 31, 2020
@jreback jreback added this to the 1.3 milestone Dec 31, 2020
@@ -2583,7 +2567,7 @@ def _block_shape(values: ArrayLike, ndim: int = 1) -> ArrayLike:
return values


def safe_reshape(arr, new_shape: Shape):
def safe_reshape(arr: ArrayLike, new_shape: Shape) -> ArrayLike:
Copy link
Member

Choose a reason for hiding this comment

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

The docstring implies that Series and Index are allowed

Copy link
Member Author

Choose a reason for hiding this comment

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

updated the docstring

@jreback jreback merged commit 2a17bf3 into pandas-dev:master Dec 31, 2020
@jbrockmendel jbrockmendel deleted the cln-follow branch December 31, 2020 19:10
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
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.

3 participants