Skip to content

Commit ee37b4d

Browse files
committed
mypy
1 parent 15a7cac commit ee37b4d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pandas/core/arrays/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ def round(self, decimals: int = 0, *args, **kwargs) -> Self:
21512151
f"Cannot round {type(self)} dtype as it is non-numeric or boolean"
21522152
)
21532153
return self._from_sequence(
2154-
[round(element) if not isna(element) else element for element in self.data],
2154+
[round(element) if not isna(element) else element for element in self],
21552155
dtype=self.dtype,
21562156
)
21572157

pandas/tests/extension/test_numpy.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,6 @@ def test_insert_invalid(self, data, invalid_scalar):
270270
# NumpyExtensionArray[object] can hold anything, so skip
271271
super().test_insert_invalid(data, invalid_scalar)
272272

273-
@pytest.mark.xfail(reason="NumpyExtensionArray.round is not implemented.")
274-
def test_round(self, data):
275-
super().test_round(data)
276-
277273

278274
class TestArithmetics(BaseNumPyTests, base.BaseArithmeticOpsTests):
279275
divmod_exc = None

0 commit comments

Comments
 (0)