Skip to content

Commit e01130d

Browse files
committed
remove blocks ignore mypyr
1 parent 70ebf5a commit e01130d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/internals/blocks.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,11 +1644,7 @@ def round(self, decimals: int, using_cow: bool = False) -> Self:
16441644
if not self.is_numeric or self.is_bool:
16451645
return self.copy(deep=not using_cow)
16461646
refs = None
1647-
# TODO: round only defined on BaseMaskedArray
1648-
# Series also does this, so would need to fix both places
1649-
# error: Item "ExtensionArray" of "Union[ndarray[Any, Any], ExtensionArray]"
1650-
# has no attribute "round"
1651-
values = self.values.round(decimals) # type: ignore[union-attr]
1647+
values = self.values.round(decimals)
16521648
if values is self.values:
16531649
refs = self.refs
16541650
if not using_cow:

0 commit comments

Comments
 (0)