Skip to content

Commit

Permalink
BleakScanner: fix discover type hints
Browse files Browse the repository at this point in the history
This fixes matching the overload when the return_adv arg is not
explicitly given.
  • Loading branch information
dlech committed Oct 3, 2022
1 parent c3ec223 commit 516f0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bleak/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def set_scanning_filter(self, **kwargs):
@overload
@classmethod
async def discover(
cls, timeout: float = 5.0, *, return_adv: Literal[False], **kwargs
cls, timeout: float = 5.0, *, return_adv: Literal[False] = False, **kwargs
) -> List[BLEDevice]:
...

Expand Down

0 comments on commit 516f0e1

Please sign in to comment.