Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -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]]: ...