mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
from _typeshed import FileDescriptorLike, Self
|
||||
from types import TracebackType
|
||||
from typing import Any, Iterable, List, Tuple, Type
|
||||
from typing import Any, Iterable, Tuple, Type
|
||||
|
||||
if sys.platform != "win32":
|
||||
PIPE_BUF: int
|
||||
@@ -22,11 +22,11 @@ class poll:
|
||||
def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...
|
||||
def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ...
|
||||
def unregister(self, fd: FileDescriptorLike) -> None: ...
|
||||
def poll(self, timeout: float | None = ...) -> List[Tuple[int, int]]: ...
|
||||
def poll(self, timeout: float | None = ...) -> list[Tuple[int, int]]: ...
|
||||
|
||||
def select(
|
||||
__rlist: Iterable[Any], __wlist: Iterable[Any], __xlist: Iterable[Any], __timeout: float | None = ...
|
||||
) -> Tuple[List[Any], List[Any], List[Any]]: ...
|
||||
) -> Tuple[list[Any], list[Any], list[Any]]: ...
|
||||
|
||||
error = OSError
|
||||
|
||||
@@ -55,7 +55,7 @@ if sys.platform != "linux" and sys.platform != "win32":
|
||||
def close(self) -> None: ...
|
||||
def control(
|
||||
self, __changelist: Iterable[kevent] | None, __maxevents: int, __timeout: float | None = ...
|
||||
) -> List[kevent]: ...
|
||||
) -> list[kevent]: ...
|
||||
def fileno(self) -> int: ...
|
||||
@classmethod
|
||||
def fromfd(cls, __fd: FileDescriptorLike) -> kqueue: ...
|
||||
@@ -114,7 +114,7 @@ if sys.platform == "linux":
|
||||
def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...
|
||||
def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ...
|
||||
def unregister(self, fd: FileDescriptorLike) -> None: ...
|
||||
def poll(self, timeout: float | None = ..., maxevents: int = ...) -> List[Tuple[int, int]]: ...
|
||||
def poll(self, timeout: float | None = ..., maxevents: int = ...) -> list[Tuple[int, int]]: ...
|
||||
@classmethod
|
||||
def fromfd(cls, __fd: FileDescriptorLike) -> epoll: ...
|
||||
EPOLLERR: int
|
||||
@@ -140,4 +140,4 @@ if sys.platform != "linux" and sys.platform != "darwin" and sys.platform != "win
|
||||
def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...
|
||||
def modify(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...
|
||||
def unregister(self, fd: FileDescriptorLike) -> None: ...
|
||||
def poll(self, timeout: float | None = ...) -> List[Tuple[int, int]]: ...
|
||||
def poll(self, timeout: float | None = ...) -> list[Tuple[int, int]]: ...
|
||||
|
||||
Reference in New Issue
Block a user