Skip to content

Commit 270b859

Browse files
committed
mypy fixup
1 parent f1d5bc3 commit 270b859

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pandas/core/arrays/period.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ def _make_field_arrays(*fields) -> list[np.ndarray]:
14761476
(
14771477
np.asarray(x)
14781478
if isinstance(x, (np.ndarray, list, ABCSeries))
1479-
else np.repeat(x, length)
1480-
) # type: ignore[arg-type]
1479+
else np.repeat(x, length) # type: ignore[arg-type]
1480+
)
14811481
for x in fields
14821482
]

pandas/core/arrays/timedeltas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def _scalar_divlike_op(self, other, op):
553553
freq = to_offset(Timedelta(days=self.freq.n)) / other
554554
else:
555555
freq = self.freq / other
556-
if freq.nanos == 0 and self.freq.nanos != 0:
556+
if freq.nanos == 0 and self.freq.nanos != 0: # type: ignore[union-attr]
557557
# e.g. if self.freq is Nano(1) then dividing by 2
558558
# rounds down to zero
559559
freq = None

pandas/core/resample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ def _insert_nat_bin(
27462746
def _adjust_dates_anchored(
27472747
first: Timestamp,
27482748
last: Timestamp,
2749-
freq: Tick,
2749+
freq: Tick | Day,
27502750
closed: Literal["right", "left"] = "right",
27512751
origin: TimeGrouperOrigin = "start_day",
27522752
offset: Timedelta | None = None,

0 commit comments

Comments
 (0)