Skip to content

CLN: changed .format to f string in pandas/core/arrays/base.py #30306

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
Dec 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions pandas/core/arrays/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
from pandas.core.missing import backfill_1d, pad_1d
from pandas.core.sorting import nargsort

_not_implemented_message = "{} does not implement {}."

_extension_array_shared_docs: Dict[str, str] = dict()


Expand Down Expand Up @@ -330,9 +328,7 @@ def __setitem__(self, key: Union[int, np.ndarray], value: Any) -> None:
# __init__ method coerces that value, then so should __setitem__
# Note, also, that Series/DataFrame.where internally use __setitem__
# on a copy of the data.
raise NotImplementedError(
_not_implemented_message.format(type(self), "__setitem__")
)
raise NotImplementedError(f"{type(self)} does not implement __setitem__.")

def __len__(self) -> int:
"""
Expand Down