Update Unused parameters in stubs/ (#9704)

* Update _Unused TypeAlias

* Update `object | None` params

* Replace unused `object` parameters with `Unused` alias
This commit is contained in:
Avasam
2023-02-21 23:52:52 -08:00
committed by GitHub
parent fbc092b4cd
commit 078c6a0958
33 changed files with 134 additions and 133 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import socket as _socket
import ssl as _ssl
import time
import types
from _typeshed import Incomplete
from _typeshed import Incomplete, Unused
from collections.abc import Callable
from typing import Any, TypeVar
from typing_extensions import TypeAlias
@@ -225,7 +225,7 @@ class Client:
def loop_misc(self) -> int: ...
def max_inflight_messages_set(self, inflight: int) -> None: ...
def max_queued_messages_set(self, queue_size: int) -> Client: ...
def message_retry_set(self, retry: object) -> None: ...
def message_retry_set(self, retry: Unused) -> None: ...
def user_data_set(self, userdata: _UserData) -> None: ...
def will_set(
self, topic: str, payload: _Payload | None = ..., qos: int = ..., retain: bool = ..., properties: Properties | None = ...