Skip to content

Commit bc3c54a

Browse files
TYP: Fix mypy errors using bool(copy) and ignores
1 parent 9373333 commit bc3c54a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/timedeltas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __new__(
208208
# - Cases checked above all return/raise before reaching here - #
209209

210210
tdarr = TimedeltaArray._from_sequence_not_strict(
211-
data, freq=freq, unit=None, dtype=dtype, copy=copy
211+
data, freq=freq, unit=None, dtype=dtype, copy=bool(copy)
212212
)
213213
refs = None
214214
if not copy and isinstance(data, (ABCSeries, Index)):

0 commit comments

Comments
 (0)