mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Stdlib: add some very large integer defaults (#9651)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -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]]: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user