import dataclasses import datetime import decimal @dataclasses.dataclass(kw_only=True, frozen=True) class Flow: """Time-discrete flow of money paid on the first day of a month""" amount: decimal.Decimal since: None | datetime.datetime until: None | datetime.datetime