Changeset - 7783f7ad10b5
0
3
0
reports: Fix mypy errors.
Errors were:
conservancy_beancount/reports/core.py:923: error: Generator has incompatible
item type "Optional[str]"; expected "str"
conservancy_beancount/reports/core.py:929: error: Item "None" of
"Optional[str]" has no attribute "lower"
conservancy_beancount/reports/ledger.py:534: error: Item "None" of
"Optional[str]" has no attribute "partition"
conservancy_beancount/reports/ledger.py:729: error: Item "None" of
"Optional[str]" has no attribute "lower"
conservancy_beancount/reports/rewrite.py:563: error: Argument 2 to
"_iter_yaml" of "RewriteRuleset" has incompatible type "Union[Any, str,
None]"; expected "str"
Errors were:
conservancy_beancount/reports/core.py:923: error: Generator has incompatible
item type "Optional[str]"; expected "str"
conservancy_beancount/reports/core.py:929: error: Item "None" of
"Optional[str]" has no attribute "lower"
conservancy_beancount/reports/ledger.py:534: error: Item "None" of
"Optional[str]" has no attribute "partition"
conservancy_beancount/reports/ledger.py:729: error: Item "None" of
"Optional[str]" has no attribute "lower"
conservancy_beancount/reports/rewrite.py:563: error: Argument 2 to
"_iter_yaml" of "RewriteRuleset" has incompatible type "Union[Any, str,
None]"; expected "str"
3 files changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
0 comments (0 inline, 0 general)