mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
imaplib.Time2Internaldate also takes datetimes and 9-element tuples (#8630)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user