10000 TYP: simple return types by twoertwein · Pull Request #54786 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TYP: simple return types #54786

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 12 commits into from
Aug 31, 2023
Prev Previous commit
Next Next commit
typo, use " for cast
  • Loading branch information
twoertwein committed Aug 28, 2023
commit d23a54bbffb0df66633dd8d1cd06062b22d7ca5b
3 changes: 1 addition & 2 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ class providing the base-class of operations.
if TYPE_CHECKING:
from typing import Any

from padnas.core.resample import Resampler

from pandas.core.resample import Resampler
from pandas.cor 8000 e.window import (
ExpandingGroupby,
ExponentialMovingWindowGroupby,
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@
from pandas import (
CategoricalIndex,
DataFrame,
MultiIndex,
Series,
)
from pandas import MultiIndex # noqa: TCH004
from pandas.core.arrays import PeriodArray

__all__ = ["Index"]
Expand Down Expand Up @@ -5017,7 +5017,7 @@ def _wrap_joined_index(
# expected "Self")
mask = lidx == -1
join_idx = self.take(lidx)
right = cast(MultiIndex, other.take(ridx))
right = cast("MultiIndex", other.take(ridx))
join_index = join_idx.putmask(mask, right)._sort_levels_monotonic()
return join_index.set_names(name) # type: ignore[return-value]
else:
Expand Down
0