mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-13 03:21:07 +08:00
Add missing defaults to third-party stubs (#14617)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user