mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Callable, Iterable, Tuple
|
||||
from typing import Callable, Iterable
|
||||
|
||||
if sys.platform != "win32":
|
||||
_Reader = Callable[[int], bytes]
|
||||
@@ -9,8 +9,8 @@ if sys.platform != "win32":
|
||||
STDERR_FILENO: int
|
||||
|
||||
CHILD: int
|
||||
def openpty() -> Tuple[int, int]: ...
|
||||
def master_open() -> Tuple[int, str]: ...
|
||||
def openpty() -> tuple[int, int]: ...
|
||||
def master_open() -> tuple[int, str]: ...
|
||||
def slave_open(tty_name: str) -> int: ...
|
||||
def fork() -> Tuple[int, int]: ...
|
||||
def fork() -> tuple[int, int]: ...
|
||||
def spawn(argv: str | Iterable[str], master_read: _Reader = ..., stdin_read: _Reader = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user