mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 05:30:23 +08:00
[stdlib] Add more default values (#14632)
This commit is contained in:
+14
-14
@@ -11,7 +11,7 @@ from abc import ABCMeta, abstractmethod
|
||||
from collections.abc import Callable, Sequence
|
||||
from concurrent.futures import Executor
|
||||
from contextvars import Context
|
||||
from socket import AddressFamily, SocketKind, _Address, _RetAddress, socket
|
||||
from socket import AddressFamily, AddressInfo, SocketKind, _Address, _RetAddress, socket
|
||||
from typing import IO, Any, Literal, Protocol, TypeVar, overload, type_check_only
|
||||
from typing_extensions import Self, TypeAlias, TypeVarTuple, Unpack, deprecated
|
||||
|
||||
@@ -289,8 +289,8 @@ class AbstractEventLoop:
|
||||
host: str | Sequence[str] | None = None,
|
||||
port: int = ...,
|
||||
*,
|
||||
family: int = ...,
|
||||
flags: int = ...,
|
||||
family: int = AddressFamily.AF_UNSPEC,
|
||||
flags: int = AddressInfo.AI_PASSIVE,
|
||||
sock: None = None,
|
||||
backlog: int = 100,
|
||||
ssl: _SSLContext = None,
|
||||
@@ -309,8 +309,8 @@ class AbstractEventLoop:
|
||||
host: None = None,
|
||||
port: None = None,
|
||||
*,
|
||||
family: int = ...,
|
||||
flags: int = ...,
|
||||
family: int = AddressFamily.AF_UNSPEC,
|
||||
flags: int = AddressInfo.AI_PASSIVE,
|
||||
sock: socket = ...,
|
||||
backlog: int = 100,
|
||||
ssl: _SSLContext = None,
|
||||
@@ -330,8 +330,8 @@ class AbstractEventLoop:
|
||||
host: str | Sequence[str] | None = None,
|
||||
port: int = ...,
|
||||
*,
|
||||
family: int = ...,
|
||||
flags: int = ...,
|
||||
family: int = AddressFamily.AF_UNSPEC,
|
||||
flags: int = AddressInfo.AI_PASSIVE,
|
||||
sock: None = None,
|
||||
backlog: int = 100,
|
||||
ssl: _SSLContext = None,
|
||||
@@ -349,8 +349,8 @@ class AbstractEventLoop:
|
||||
host: None = None,
|
||||
port: None = None,
|
||||
*,
|
||||
family: int = ...,
|
||||
flags: int = ...,
|
||||
family: int = AddressFamily.AF_UNSPEC,
|
||||
flags: int = AddressInfo.AI_PASSIVE,
|
||||
sock: socket = ...,
|
||||
backlog: int = 100,
|
||||
ssl: _SSLContext = None,
|
||||
@@ -369,8 +369,8 @@ class AbstractEventLoop:
|
||||
host: str | Sequence[str] | None = None,
|
||||
port: int = ...,
|
||||
*,
|
||||
family: int = ...,
|
||||
flags: int = ...,
|
||||
family: int = AddressFamily.AF_UNSPEC,
|
||||
flags: int = AddressInfo.AI_PASSIVE,
|
||||
sock: None = None,
|
||||
backlog: int = 100,
|
||||
ssl: _SSLContext = None,
|
||||
@@ -387,8 +387,8 @@ class AbstractEventLoop:
|
||||
host: None = None,
|
||||
port: None = None,
|
||||
*,
|
||||
family: int = ...,
|
||||
flags: int = ...,
|
||||
family: int = AddressFamily.AF_UNSPEC,
|
||||
flags: int = AddressInfo.AI_PASSIVE,
|
||||
sock: socket = ...,
|
||||
backlog: int = 100,
|
||||
ssl: _SSLContext = None,
|
||||
@@ -536,7 +536,7 @@ class AbstractEventLoop:
|
||||
bufsize: Literal[0] = 0,
|
||||
encoding: None = None,
|
||||
errors: None = None,
|
||||
text: Literal[False] | None = ...,
|
||||
text: Literal[False] | None = None,
|
||||
**kwargs: Any,
|
||||
) -> tuple[SubprocessTransport, _ProtocolT]: ...
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user