You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In commands that make use of *kwargs, pyright complains that types are unknown
What I Did
For example, on BleakClient.connect()
Type of "connect" is partially unknown
Type of "connect" is "(**kwargs: Unknown) -> Coroutine[Any, Any, bool]"Pylance[reportUnknownMemberType](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportUnknownMemberType)
Type errors are resolved if we change
async def connect(self, **kwargs) -> bool:
to
async def connect(self, **kwargs: Any) -> bool:
it looks like this should be done to all *args and **kwargs across all functions.
Or perhaps we should do something with Unpack[] like BleakScanner does for a few of its methods?
Description
In commands that make use of *kwargs, pyright complains that types are unknown
What I Did
For example, on
BleakClient.connect()
Type errors are resolved if we change
to
it looks like this should be done to all *args and **kwargs across all functions.
Or perhaps we should do something with
Unpack[]
likeBleakScanner
does for a few of its methods?bleak/bleak/__init__.py
Line 374 in e01e264
The text was updated successfully, but these errors were encountered: