diff options
author | xengineering <me@xengineering.eu> | 2024-09-08 12:46:20 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-09-08 17:21:32 +0200 |
commit | 7521277860b377e3e9ec7b6d5a62c4c2c14d694f (patch) | |
tree | 56dd44a017a9e5085fbbb0ae9efdf4f20551be13 /demo | |
parent | 4e8d17c8d0b7d5406d3a9df8c320b5cbabb9d330 (diff) | |
download | finance-py-7521277860b377e3e9ec7b6d5a62c4c2c14d694f.tar finance-py-7521277860b377e3e9ec7b6d5a62c4c2c14d694f.tar.zst finance-py-7521277860b377e3e9ec7b6d5a62c4c2c14d694f.zip |
Use list[tuple[datetime, Decimal]] consistently
This type is useful for finance-py in general. It is often required to
handle money in datetime context. Using this type consistently makes the
code easier to read and maintain.
Diffstat (limited to 'demo')
-rwxr-xr-x | demo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,11 +16,11 @@ DESCRIPTION = "Demo application plotting financial data with finance-py" def main() -> None: argparse.ArgumentParser(description=DESCRIPTION).parse_args() - measured = ( + measured = [ (datetime(2024, 1, 1), Decimal(105.0)), (datetime(2024, 2, 1), Decimal(207.0)), (datetime(2024, 3, 1), Decimal(334.0)), - ) + ] flows = ( Flow(amount=Decimal(100.0), since=None, until=None), |