From de29dc3649206ed064aa709ba3933ecf7f3813b9 Mon Sep 17 00:00:00 2001 From: Cole Maclean Date: Thu, 2 Nov 2023 11:00:28 -0700 Subject: [PATCH] fix: deque typing --- aiosmtplib/protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiosmtplib/protocol.py b/aiosmtplib/protocol.py index 4a3564f5..e7a4bc36 100644 --- a/aiosmtplib/protocol.py +++ b/aiosmtplib/protocol.py @@ -5,7 +5,7 @@ import collections import re import ssl -from typing import Optional, cast +from typing import Deque, Optional, cast from .errors import ( SMTPDataError, @@ -45,7 +45,7 @@ def __init__(self, loop: Optional[asyncio.AbstractEventLoop] = None): self._loop = loop self._paused = False - self._drain_waiters = collections.deque() + self._drain_waiters: Deque[asyncio.Future[None]] = collections.deque() self._connection_lost = False def pause_writing(self) -> None: