From 3178b9d4309b5e3e0ca60989378c1a28e3a55cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 28 Oct 2024 10:50:38 +0200 Subject: [PATCH] Fix Session.peer type annotation Fixes: #518 --- aiosmtpd/smtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiosmtpd/smtp.py b/aiosmtpd/smtp.py index 3b85fcfb..25b19bae 100644 --- a/aiosmtpd/smtp.py +++ b/aiosmtpd/smtp.py @@ -155,7 +155,7 @@ def __repr__(self) -> str: @public class Session: def __init__(self, loop: asyncio.AbstractEventLoop): - self.peer: Optional[str] = None + self.peer: Optional[Tuple[str, int]] = None self.ssl: Optional[dict[str, Any]] = None self.host_name: Optional[str] = None self.extended_smtp = False