File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66from bisect import bisect
77from collections import Counter
88from collections import defaultdict
9- from collections .abc import Sequence
109from decimal import Decimal
1110from typing import TYPE_CHECKING
1211
1312if TYPE_CHECKING : # pragma: no cover
1413 from collections .abc import Iterable
14+ from collections .abc import Sequence
1515 from typing import TypeAlias
1616
1717 from fava .beans .abc import Price
2323ONE = Decimal (1 )
2424
2525
26- class DateKeyWrapper (Sequence [datetime .date ]):
26+ class DateKeyWrapper (list [datetime .date ]):
2727 """A class wrapping a list of prices for bisect.
2828
2929 This is needed before Python 3.10, which adds the key argument.
3030 """
3131
3232 __slots__ = ("inner" ,)
3333
34- def __init__ (self , inner : Sequence [PricePoint ]) -> None :
34+ def __init__ (self , inner : list [PricePoint ]) -> None :
3535 self .inner = inner
3636
3737 def __len__ (self ) -> int :
You can’t perform that action at this time.
0 commit comments