Skip to content

Commit 10f9c37

Browse files
committed
CLN: respond to review comments
1 parent 4f22ff5 commit 10f9c37

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pandas/core/internals/blocks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,11 +2150,13 @@ def is_object(self) -> bool: # type: ignore[override]
21502150

21512151
class NumericBlock(NumpyBlock):
21522152
# this Block type is kept for backwards-compatibility
2153+
# TODO(3.0): delete and remove deprecation in __init__.py.
21532154
__slots__ = ()
21542155

21552156

21562157
class ObjectBlock(NumpyBlock):
21572158
# this Block type is kept for backwards-compatibility
2159+
# TODO(3.0): delete and remove deprecation in __init__.py.
21582160
__slots__ = ()
21592161

21602162

pandas/tests/series/test_constructors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,6 +2093,7 @@ def test_constructor_no_pandas_array(self, using_array_manager):
20932093
tm.assert_series_equal(ser, result)
20942094
if not using_array_manager:
20952095
assert isinstance(result._mgr.blocks[0], NumpyBlock)
2096+
assert result._mgr.blocks[0].is_numeric
20962097

20972098
@td.skip_array_manager_invalid_test
20982099
def test_from_array(self):

0 commit comments

Comments
 (0)