File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ from email.charset import Charset
5
5
from email .contentmanager import ContentManager
6
6
from email .errors import MessageDefect
7
7
from email .policy import Policy
8
- from typing import Any , TypeVar
8
+ from typing import Any , TypeVar , overload
9
9
from typing_extensions import TypeAlias
10
10
11
11
__all__ = ["Message" , "EmailMessage" ]
@@ -54,7 +54,10 @@ class Message:
54
54
def get_filename (self , failobj : _T = ...) -> _T | str : ...
55
55
def get_boundary (self , failobj : _T = ...) -> _T | str : ...
56
56
def set_boundary (self , boundary : str ) -> None : ...
57
- def get_content_charset (self , failobj : _T = ...) -> _T | str : ...
57
+ @overload
58
+ def get_content_charset (self ) -> str | None : ...
59
+ @overload
60
+ def get_content_charset (self , failobj : _T ) -> str | _T : ...
58
61
def get_charsets (self , failobj : _T = ...) -> _T | list [str ]: ...
59
62
def walk (self : Self ) -> Generator [Self , None , None ]: ...
60
63
def get_content_disposition (self ) -> str | None : ...
You can’t perform that action at this time.
0 commit comments