8000 CLN: move maybe_casted_values from pandas/core/frame.py to pandas/core/dtype/cast.py by arw2019 · Pull Request #36985 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN: move maybe_casted_values from pandas/core/frame.py to pandas/core/dtype/cast.py #36985

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 9 commits into from
Oct 10, 2020
Prev Previous commit
add error code to '# type: ignore'
  • Loading branch information
arw2019 committed Oct 10, 2020
commit d6581535c915781d9cc3a65c0e59d3cd63c14b54
4 changes: 3 additions & 1 deletion pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ def maybe_casted_values(index, codes=None):
values, _ = maybe_upcast_putmask(values, mask, np.nan)

if issubclass(values_type, DatetimeLikeArrayMixin):
values = values_type(values, dtype=values_dtype) # type: ignore
values = values_type(
values, dtype=values_dtype
) # type: ignore[call-arg]

return values

Expand Down
0