email.message: fix return type of get_charsets (#9944)

Fixes #9885
This commit is contained in:
Shantanu
2023-03-25 17:42:45 -07:00
committed by GitHub
parent 9c5f9cd000
commit 1537a598d0

View File

@@ -80,9 +80,9 @@ class Message:
@overload
def get_content_charset(self, failobj: _T) -> str | _T: ...
@overload
def get_charsets(self, failobj: None = None) -> list[str] | None: ...
def get_charsets(self, failobj: None = None) -> list[str | None]: ...
@overload
def get_charsets(self, failobj: _T) -> list[str] | _T: ...
def get_charsets(self, failobj: _T) -> list[str | _T]: ...
def walk(self) -> Generator[Self, None, None]: ...
def get_content_disposition(self) -> str | None: ...
def as_string(self, unixfrom: bool = False, maxheaderlen: int = 0, policy: Policy | None = None) -> str: ...