Skip to content

Commit 0f0f5e8

Browse files
mesh-2433: type recipient as Mailbox
1 parent c1409cb commit 0f0f5e8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/mesh_sandbox/common/exceptions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from mailbox import Mailbox
12
from typing import Any, Optional, Union
23
from uuid import uuid4
34

@@ -60,13 +61,13 @@ def get_ndr_error() -> dict:
6061
return error_description
6162

6263

63-
def create_ndr(request: CreateReportRequest, recipient: str) -> Message:
64+
def create_ndr(request: CreateReportRequest, recipient: Mailbox) -> Message:
6465
error_description = get_ndr_error()
6566
report = create_error_report(request, error_description, recipient)
6667
return report
6768

6869

69-
def create_error_report(request: CreateReportRequest, error_description: dict, recipient: str) -> Message:
70+
def create_error_report(request: CreateReportRequest, error_description: dict, recipient: Mailbox) -> Message:
7071

7172
error_code = error_description.get("errorCode")
7273
error_event = error_description.get("errorEvent")

0 commit comments

Comments
 (0)