mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use lowercase tuple where possible (#6170)
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, Tuple, Type
|
||||
from typing import Any, Iterable, 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
|
||||
|
||||
@@ -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