Browse Source

imap: mypy fix

Peter Bieringer 1 year ago
parent
commit
3df5d28432
1 changed files with 1 additions and 0 deletions
  1. 1 0
      radicale/auth/imap.py

+ 1 - 0
radicale/auth/imap.py

@@ -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,