Skip to content

Commit 4ccd961

Browse files
committed
fix tests and plotting
1 parent 9f50296 commit 4ccd961

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/plotting/_matplotlib/style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def _random_color(column: int) -> list[float]:
273273
"""Get a random color represented as a list of length 3"""
274274
# GH17525 use common._random_state to avoid resetting the seed
275275
rs = com.random_state(column)
276-
return rs.rand(3).tolist()
276+
return rs.rand(3).tolist() # type: ignore[return-value]
277277

278278

279279
def _is_single_string_color(color: Color) -> bool:

pandas/tests/dtypes/test_missing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,8 @@ def test_empty_like(self):
769769
np.datetime64("NaT"),
770770
np.timedelta64("NaT"),
771771
]
772-
+ [np.datetime64("NaT", unit) for unit in m8_units]
773-
+ [np.timedelta64("NaT", unit) for unit in m8_units]
772+
+ [np.datetime64("NaT", unit) for unit in m8_units] # type: ignore[call-overload]
773+
+ [np.timedelta64("NaT", unit) for unit in m8_units] # type: ignore[call-overload]
774774
)
775775

776776
inf_vals = [

0 commit comments

Comments
 (0)