accrual: Make comment not an actual type:ignore.

This commit is contained in:
Brett Smith 2020-07-02 13:07:59 -04:00
parent a8a3f9d12b
commit 638bc8ccbb

View file

@ -470,7 +470,7 @@ class OutgoingReport(BaseReport):
payment_methods = posts.meta_values('payment-method')
payment_methods.discard(None)
if all(isinstance(s, str) for s in payment_methods):
# type:ignore for <https://github.com/python/mypy/issues/7853>
# type ignore for <https://github.com/python/mypy/issues/7853>
payment_methods = {s.strip().lower() for s in payment_methods} # type:ignore[union-attr]
log_prefix = f"cannot set payment-method for rt:{ticket_id}:"
payment_method_count = len(payment_methods)