[stdlib] Add more default values (#14632)

This commit is contained in:
Semyon Moroz
2025-08-24 16:56:42 +01:00
committed by GitHub
parent e8ba06f710
commit 91e2ed0953
16 changed files with 158 additions and 152 deletions
+14 -14
View File
@@ -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