Skip to content

Commit 46e1ca6

Browse files
Jcole429proost
authored andcommitted
CLN: changed .format to f string in pandas/core/arrays/base.py (pandas-dev#30306)
1 parent 082ed61 commit 46e1ca6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/arrays/base.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
from pandas.core.missing import backfill_1d, pad_1d
2828
from pandas.core.sorting import nargsort
2929

30-
_not_implemented_message = "{} does not implement {}."
31-
3230
_extension_array_shared_docs: Dict[str, str] = dict()
3331

3432

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

337333
def __len__(self) -> int:
338334
"""

0 commit comments

Comments
 (0)