Explorar o código

merge: fix conflict

Mikael Koli %!s(int64=4) %!d(string=hai) anos
pai
achega
7f5595fdde
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      redmail/email/sender.py

+ 5 - 0
redmail/email/sender.py

@@ -1,4 +1,5 @@
 
+from copy import copy
 from email.message import EmailMessage
 from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union
 
@@ -467,3 +468,7 @@ class EmailSender:
             self.templates_html_table = jinja2.Environment(loader=jinja2.FileSystemLoader(html_table))
         if text_table is not None:
             self.templates_text_table = jinja2.Environment(loader=jinja2.FileSystemLoader(text_table))
+
+    def copy(self) -> 'EmailSender':
+        "Shallow copy EmailSender"
+        return copy(self)