Add missing defaults to third-party stubs (#14617)

This commit is contained in:
Jelle Zijlstra
2025-08-21 13:36:29 -07:00
committed by GitHub
parent 82926783a4
commit 573b57d8da
54 changed files with 383 additions and 376 deletions
+9 -12
View File
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from logging import Logger
from pika.adapters.base_connection import BaseConnection
@@ -10,17 +9,15 @@ LOGGER: Logger
class GeventConnection(BaseConnection):
def __init__(
self,
parameters: Incomplete | None = ...,
on_open_callback: Incomplete | None = ...,
on_open_error_callback: Incomplete | None = ...,
on_close_callback: Incomplete | None = ...,
custom_ioloop: Incomplete | None = ...,
internal_connection_workflow: bool = ...,
parameters=None,
on_open_callback=None,
on_open_error_callback=None,
on_close_callback=None,
custom_ioloop=None,
internal_connection_workflow: bool = True,
) -> None: ...
@classmethod
def create_connection(
cls, connection_configs, on_done, custom_ioloop: Incomplete | None = ..., workflow: Incomplete | None = ...
): ...
def create_connection(cls, connection_configs, on_done, custom_ioloop=None, workflow=None): ...
class _TSafeCallbackQueue:
def __init__(self) -> None: ...
@@ -33,7 +30,7 @@ class _GeventSelectorIOLoop(AbstractSelectorIOLoop):
READ: int
WRITE: int
ERROR: int
def __init__(self, gevent_hub: Incomplete | None = ...) -> None: ...
def __init__(self, gevent_hub=None) -> None: ...
def close(self) -> None: ...
def start(self) -> None: ...
def stop(self) -> None: ...
@@ -45,7 +42,7 @@ class _GeventSelectorIOLoop(AbstractSelectorIOLoop):
def remove_handler(self, fd) -> None: ...
class _GeventSelectorIOServicesAdapter(SelectorIOServicesAdapter):
def getaddrinfo(self, host, port, on_done, family: int = ..., socktype: int = ..., proto: int = ..., flags: int = ...): ...
def getaddrinfo(self, host, port, on_done, family: int = 0, socktype: int = 0, proto: int = 0, flags: int = 0): ...
class _GeventIOLoopIOHandle(AbstractIOReference):
def __init__(self, subject) -> None: ...