Explorar el Código

docs: updated typehints slightly

Mikael Koli hace 4 años
padre
commit
88713eaff5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      redmail/email/sender.py

+ 2 - 2
redmail/email/sender.py

@@ -217,7 +217,7 @@ class EmailSender:
             att.attach(msg)
             att.attach(msg)
         return msg
         return msg
 
 
-    def get_receivers(self, receivers:Union[list, str]) -> List[str]:
+    def get_receivers(self, receivers:Union[list, str]) -> Union[List[str], None]:
         """Get receivers of the email"""
         """Get receivers of the email"""
         return receivers or self.receivers
         return receivers or self.receivers
 
 
@@ -225,7 +225,7 @@ class EmailSender:
         """Get carbon copy (cc) of the email"""
         """Get carbon copy (cc) of the email"""
         return cc or self.cc
         return cc or self.cc
 
 
-    def get_bcc(self, bcc:Union[list, str]) -> List[str]:
+    def get_bcc(self, bcc:Union[list, str]) -> Union[List[str], None]:
         """Get blind carbon copy (bcc) of the email"""
         """Get blind carbon copy (bcc) of the email"""
         return bcc or self.bcc
         return bcc or self.bcc