imap: mypy fix

This commit is contained in:
Peter Bieringer 2025-01-16 06:11:57 +01:00
parent e80bf58901
commit 3df5d28432

View file

@ -49,6 +49,7 @@ class Auth(auth.BaseAuth):
def _login(self, login, password) -> str:
try:
connection: imaplib.IMAP4 | imaplib.IMAP4_SSL
if self._security == "tls":
connection = imaplib.IMAP4_SSL(
host=self._host, port=self._port,