Skip to content

Commit 77e8433

Browse files
committed
remove linux job from azure-pipelines.yml
1 parent 0db2310 commit 77e8433

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

pandas/core/internals/blocks.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@
118118
from pandas.core.arrays._mixins import NDArrayBackedExtensionArray
119119

120120
# comparison is faster than is_object_dtype
121-
122-
# error: Value of type variable "_DTypeScalar" of "dtype" cannot be "object"
123-
_dtype_obj = np.dtype(object) # type: ignore[type-var]
121+
_dtype_obj = np.dtype("object")
124122

125123

126124
class Block(PandasObject):
@@ -835,7 +833,7 @@ def _replace_list(
835833

836834
rb = [self if inplace else self.copy()]
837835
for i, (src, dest) in enumerate(pairs):
838-
new_rb: List[Block] = []
836+
new_rb: List["Block"] = []
839837
for blk in rb:
840838
m = masks[i]
841839
convert = i == src_len # only convert once at the end
@@ -1598,14 +1596,9 @@ def to_native_types(self, na_rep="nan", quoting=None, **kwargs):
15981596
values = self.values
15991597
mask = isna(values)
16001598

1601-
# error: Incompatible types in assignment (expression has type "ndarray",
1602-
# variable has type "ExtensionArray")
1603-
values = np.asarray(values.astype(object)) # type: ignore[assignment]
1604-
values[mask] = na_rep
1605-
1606-
# TODO(EA2D): reshape not needed with 2D EAs
1607-
# we are expected to return a 2-d ndarray
1608-
return self.make_block(values)
1599+
new_values = np.asarray(values.astype(object))
1600+
new_values[mask] = na_rep
1601+
return self.make_block(new_values)
16091602

16101603
def take_nd(
16111604
self, indexer, axis: int = 0, new_mgr_locs=None, fill_value=lib.no_default

pandas/io/pytables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4058,7 +4058,7 @@ def get_blk_items(mgr):
40584058
tuple(b_items.tolist()): (b, b_items)
40594059
for b, b_items in zip(blocks, blk_items)
40604060
}
4061-
new_blocks: List[Block] = []
4061+
new_blocks: List["Block"] = []
40624062
new_blk_items = []
40634063
for ea in values_axes:
40644064
items = tuple(ea.values)

0 commit comments

Comments
 (0)