Stdlib: add some very large integer defaults (#9651)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Alex Waygood
2023-02-01 20:10:28 +00:00
committed by GitHub
parent 8000fbd386
commit 35172c7aab
4 changed files with 5 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ if sys.platform == "win32":
) -> list[PipeServer]: ...
class IocpProactor:
def __init__(self, concurrency: int = ...) -> None: ...
def __init__(self, concurrency: int = 0xFFFFFFFF) -> None: ...
def __del__(self) -> None: ...
def set_loop(self, loop: events.AbstractEventLoop) -> None: ...
def select(self, timeout: int | None = None) -> list[futures.Future[Any]]: ...

View File

@@ -83,7 +83,7 @@ class NodePattern(BasePattern):
class WildcardPattern(BasePattern):
min: int
max: int
def __init__(self, content: str | None = None, min: int = 0, max: int = ..., name: str | None = None) -> None: ...
def __init__(self, content: str | None = None, min: int = 0, max: int = 0x7FFFFFFF, name: str | None = None) -> None: ...
class NegatedPattern(BasePattern):
def __init__(self, content: str | None = None) -> None: ...

View File

@@ -41,7 +41,7 @@ class SMTPChannel(asynchat.async_chat):
server: SMTPServer,
conn: socket.socket,
addr: Any,
data_size_limit: int = ...,
data_size_limit: int = 33554432,
map: asyncore._MapType | None = None,
enable_SMTPUTF8: bool = False,
decode_data: bool = False,
@@ -71,7 +71,7 @@ class SMTPServer(asyncore.dispatcher):
self,
localaddr: _Address,
remoteaddr: _Address,
data_size_limit: int = ...,
data_size_limit: int = 33554432,
map: asyncore._MapType | None = None,
enable_SMTPUTF8: bool = False,
decode_data: bool = False,

View File

@@ -204,7 +204,7 @@ def loads(
data: str, use_datetime: bool = False, use_builtin_types: bool = False
) -> tuple[tuple[_Marshallable, ...], str | None]: ...
def gzip_encode(data: ReadableBuffer) -> bytes: ... # undocumented
def gzip_decode(data: ReadableBuffer, max_decode: int = ...) -> bytes: ... # undocumented
def gzip_decode(data: ReadableBuffer, max_decode: int = 20971520) -> bytes: ... # undocumented
class GzipDecodedResponse(gzip.GzipFile): # undocumented
io: BytesIO