From ceb0c451fadebc7924827d2f624a4b444fcd57dd 2020-07-01 19:57:58 From: Brett Smith Date: 2020-07-01 19:57:58 Subject: [PATCH] fund: Improve type signature. --- diff --git a/conservancy_beancount/reports/fund.py b/conservancy_beancount/reports/fund.py index ae2bb4163f76632fd4c44175e22ad1508013b8b7..9436e59874f43e573260dea56c12ba6b74e4718b 100644 --- a/conservancy_beancount/reports/fund.py +++ b/conservancy_beancount/reports/fund.py @@ -173,7 +173,7 @@ class ODSReport(core.BaseODS[FundPosts, None]): self.document.spreadsheet.childNodes.reverse() self.sheet = start_sheet - def _row_balances(self, accounts_map: AccountsMap) -> Iterable[core.Balance]: + def _row_balances(self, accounts_map: AccountsMap) -> Iterator[core.Balance]: acct_order = ['Income', 'Expenses', 'Equity'] key_order = [core.OPENING_BALANCE_NAME, *acct_order, core.ENDING_BALANCE_NAME] balances: Dict[str, core.Balance] = {key: core.MutableBalance() for key in key_order}