mypy
This commit is contained in:
parent
e231425f20
commit
1d6bbd9f1e
|
@ -76,7 +76,7 @@ class ErrorHandlingService:
|
||||||
def handle_system_notification(
|
def handle_system_notification(
|
||||||
error: Union[ApiError, Exception],
|
error: Union[ApiError, Exception],
|
||||||
recipients: List,
|
recipients: List,
|
||||||
):
|
) -> Response:
|
||||||
message_payload = {
|
message_payload = {
|
||||||
'my_var': 'my_value',
|
'my_var': 'my_value',
|
||||||
'error': error.__repr__(),
|
'error': error.__repr__(),
|
||||||
|
|
|
@ -2160,7 +2160,7 @@ class TestProcessApi(BaseTest):
|
||||||
assert process is not None
|
assert process is not None
|
||||||
assert process.status == "suspended"
|
assert process.status == "suspended"
|
||||||
|
|
||||||
def test_error_handler_system_notification(self):
|
def test_error_handler_system_notification(self) -> None:
|
||||||
"""Test_error_handler_system_notification."""
|
"""Test_error_handler_system_notification."""
|
||||||
# TODO: make sure the system notification process is run on exceptions
|
# TODO: make sure the system notification process is run on exceptions
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue