summaryrefslogtreecommitdiff
path: root/finance/flow.py
diff options
context:
space:
mode:
Diffstat (limited to 'finance/flow.py')
-rw-r--r--finance/flow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/finance/flow.py b/finance/flow.py
index 4cf68db..c6b28c0 100644
--- a/finance/flow.py
+++ b/finance/flow.py
@@ -46,7 +46,7 @@ def monthly_candidates(start: datetime) -> Generator[datetime, None, None]:
def simulate(
start: datetime, end: datetime, flows: tuple[Flow, ...]
-) -> tuple[list[datetime], list[Decimal]]:
+) -> list[tuple[datetime, Decimal]]:
dates: list[datetime] = []
values: list[Decimal] = []
@@ -63,4 +63,4 @@ def simulate(
value += flow.integrate(start, date)
values.append(value)
- return (dates, values)
+ return [(date, values[index]) for index, date in enumerate(dates)]