Skip to content

Commit e5d500d

Browse files
committed
nitpick
1 parent 01d1453 commit e5d500d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,14 +2141,14 @@ def _mode(self, dropna: bool = True) -> Self:
21412141
# error: Incompatible return value type (got "Union[ExtensionArray,
21422142
# ndarray[Any, Any]]", expected "Self")
21432143
return mode(self, dropna=dropna) # type: ignore[return-value]
2144-
2144+
21452145
def round(self, decimals: int = 0, *args, **kwargs) -> Self:
21462146
# Implementer note: This is a non-optimized default implementation.
21472147
# Implementers are encouraged to override this method to avoid
21482148
# elementwise rounding.
21492149
if not self.dtype._is_numeric or self.dtype._is_boolean:
21502150
raise TypeError(
2151-
f"Cannot round {self.dtype} dtype as it is non-numeric or boolean"
2151+
f"Cannot round {type(self)} dtype as it is non-numeric or boolean"
21522152
)
21532153
return self._from_sequence(
21542154
[round(element) if not isna(element) else element for element in self.data],

0 commit comments

Comments
 (0)