Skip to content

Commit c60a123

Browse files
committed
fixups
1 parent 21b4eee commit c60a123

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

asv_bench/benchmarks/timedelta.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
import numpy as np
44

55
from pandas import (
6-
DataFrame, Series, Timedelta, Timestamp, timedelta_range, to_timedelta)
6+
DataFrame,
7+
Series,
8+
Timedelta,
9+
Timestamp,
10+
timedelta_range,
11+
to_timedelta,
12+
)
713

814

915
class TimedeltaConstructor:

pandas/core/indexes/datetimelike.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ class DatetimeIndexOpsMixin(ExtensionOpsMixin):
7373
# properties there. They can be made into cache_readonly for Index
7474
# subclasses bc they are immutable
7575
inferred_freq = cache_readonly(
76-
DatetimeLikeArrayMixin.inferred_freq.fget
77-
) # type: ignore
76+
DatetimeLikeArrayMixin.inferred_freq.fget # type: ignore
77+
)
7878
_isnan = cache_readonly(DatetimeLikeArrayMixin._isnan.fget) # type: ignore
7979
hasnans = cache_readonly(DatetimeLikeArrayMixin._hasnans.fget) # type: ignore
8080
_hasnans = hasnans # for index / array -agnostic code
8181
_resolution = cache_readonly(
82-
DatetimeLikeArrayMixin._resolution.fget
83-
) # type: ignore
82+
DatetimeLikeArrayMixin._resolution.fget # type: ignore
83+
)
8484
resolution = cache_readonly(DatetimeLikeArrayMixin.resolution.fget) # type: ignore
8585

8686
_maybe_mask_results = ea_passthrough(DatetimeLikeArrayMixin._maybe_mask_results)

0 commit comments

Comments
 (0)