mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
mypy: Add specific codes to type: ignore annotations.
https://mypy.readthedocs.io/en/stable/error_codes.html Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
029bfb9fee
commit
f8c95cda51
@@ -129,7 +129,7 @@ class AdminNotifyHandler(logging.Handler):
|
||||
report['log_lineno'] = record.lineno
|
||||
|
||||
if hasattr(record, "request"):
|
||||
add_request_metadata(report, record.request) # type: ignore # record.request is added dynamically
|
||||
add_request_metadata(report, record.request) # type: ignore[attr-defined] # record.request is added dynamically
|
||||
|
||||
except Exception:
|
||||
report['message'] = "Exception in preparing exception report!"
|
||||
|
||||
Reference in New Issue
Block a user