callable type hint
This commit is contained in:
parent
e0959fb9c6
commit
885532f27a
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def is_message_encrypted(message: email.message.Message) -> bool:
|
|||
|
||||
return message.get_content_subtype() == "encrypted"
|
||||
|
||||
def get_encoder_from_msg(msg: email.message.Message) -> function:
|
||||
def get_encoder_from_msg(msg: email.message.Message) -> typing.Callable:
|
||||
"""
|
||||
Return a suitable encoder function from email.encoders based on an input
|
||||
message. If the input message has no Content-Transfer-Encoding header,
|
||||
|
|
Loading…
Reference in a new issue