We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
imaplib.Time2Internaldate
datetime
1 parent dece0b1 commit d1d9b98Copy full SHA for d1d9b98
stdlib/imaplib.pyi
@@ -4,6 +4,7 @@ import time
4
from _typeshed import Self
5
from builtins import list as _list # conflicts with a method named "list"
6
from collections.abc import Callable
7
+from datetime import datetime
8
from re import Pattern
9
from socket import socket as _socket
10
from ssl import SSLContext, SSLSocket
@@ -159,4 +160,4 @@ class _Authenticator:
159
160
def Internaldate2tuple(resp: bytes) -> time.struct_time: ...
161
def Int2AP(num: int) -> str: ...
162
def ParseFlags(resp: bytes) -> tuple[bytes, ...]: ...
-def Time2Internaldate(date_time: float | time.struct_time | str) -> str: ...
163
+def Time2Internaldate(date_time: float | time.struct_time | time._TimeTuple | datetime | str) -> str: ...
0 commit comments