There's no need to provide a transactions input arg in Account.__init__. Transaction-adding functionality is managed in every case by the add_transaction method. Removing this argument will remove the most complex part of the __init__ signature.
This is by necessity in the case of any year after the initial year. It's a matter of practicality in the case of the initial year, since we don't generally expect to know what the transactions in an account will be at init time.
There's no need to provide a
transactions
input arg inAccount.__init__
. Transaction-adding functionality is managed in every case by theadd_transaction
method. Removing this argument will remove the most complex part of the__init__
signature.This is by necessity in the case of any year after the initial year. It's a matter of practicality in the case of the initial year, since we don't generally expect to know what the transactions in an account will be at init time.