imaplib.Time2Internaldate also takes datetimes and 9-element tuples (#8630)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Jason Heiss
2022-08-27 08:11:26 -07:00
committed by GitHub
parent dece0b1fff
commit d1d9b98aff

View File

@@ -4,6 +4,7 @@ import time
from _typeshed import Self
from builtins import list as _list # conflicts with a method named "list"
from collections.abc import Callable
from datetime import datetime
from re import Pattern
from socket import socket as _socket
from ssl import SSLContext, SSLSocket
@@ -159,4 +160,4 @@ class _Authenticator:
def Internaldate2tuple(resp: bytes) -> time.struct_time: ...
def Int2AP(num: int) -> str: ...
def ParseFlags(resp: bytes) -> tuple[bytes, ...]: ...
def Time2Internaldate(date_time: float | time.struct_time | str) -> str: ...
def Time2Internaldate(date_time: float | time.struct_time | time._TimeTuple | datetime | str) -> str: ...