Skip to content

Commit

Permalink
fix: cython compat
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Dec 3, 2023
1 parent 6a0743d commit 53f946c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/habluetooth/base_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import asyncio
import logging
from abc import abstractmethod
from collections.abc import Callable, Generator
from contextlib import contextmanager
from typing import TYPE_CHECKING, Any, Final, final
Expand Down Expand Up @@ -142,13 +141,11 @@ def connecting(self) -> Generator[None, None, None]:
self.scanning = not self._connecting

@property
@abstractmethod
def discovered_devices(self) -> list[BLEDevice]:
def discovered_devices(self) -> list[BLEDevice]: # type: ignore[empty-body]
"""Return a list of discovered devices."""

@property
@abstractmethod
def discovered_devices_and_advertisement_data(
def discovered_devices_and_advertisement_data( # type: ignore[empty-body]
self,
) -> dict[str, tuple[BLEDevice, AdvertisementData]]:
"""Return a list of discovered devices and their advertisement data."""
Expand Down

0 comments on commit 53f946c

Please sign in to comment.