mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 12:01:52 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import socket
|
||||
from typing import Any, BinaryIO, List, Optional, Pattern, Text, Tuple, overload
|
||||
from typing import Any, BinaryIO, List, Pattern, Text, Tuple, overload
|
||||
|
||||
_LongResp = Tuple[bytes, List[bytes], int]
|
||||
|
||||
@@ -23,7 +23,7 @@ class POP3:
|
||||
def user(self, user: Text) -> bytes: ...
|
||||
def pass_(self, pswd: Text) -> bytes: ...
|
||||
def stat(self) -> Tuple[int, int]: ...
|
||||
def list(self, which: Optional[Any] = ...) -> _LongResp: ...
|
||||
def list(self, which: Any | None = ...) -> _LongResp: ...
|
||||
def retr(self, which: Any) -> _LongResp: ...
|
||||
def dele(self, which: Any) -> bytes: ...
|
||||
def noop(self) -> bytes: ...
|
||||
@@ -41,5 +41,5 @@ class POP3:
|
||||
|
||||
class POP3_SSL(POP3):
|
||||
def __init__(
|
||||
self, host: Text, port: int = ..., keyfile: Optional[Text] = ..., certfile: Optional[Text] = ..., timeout: float = ...
|
||||
self, host: Text, port: int = ..., keyfile: Text | None = ..., certfile: Text | None = ..., timeout: float = ...
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user