Skip to content

Commit 65ca970

Browse files
committed
fixup! deps
1 parent d6e2ead commit 65ca970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fava/beans/prices.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
from bisect import bisect
77
from collections import Counter
88
from collections import defaultdict
9-
from collections.abc import Sequence
109
from decimal import Decimal
1110
from typing import TYPE_CHECKING
1211

1312
if 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
@@ -23,15 +23,15 @@
2323
ONE = 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:

0 commit comments

Comments
 (0)