We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d05d2ad commit 0fd4509Copy full SHA for 0fd4509
adafruit_ble/characteristics/float.py
@@ -16,7 +16,7 @@
16
from . import StructCharacteristic
17
18
try:
19
- from typing import Optional, Type, TYPE_CHECKING
+ from typing import Optional, Type, Union, TYPE_CHECKING
20
21
if TYPE_CHECKING:
22
from circuitpython_typing import ReadableBuffer
@@ -55,7 +55,7 @@ def __init__(
55
56
def __get__(
57
self, obj: Optional[Service], cls: Optional[Type[Service]] = None
58
- ) -> float:
+ ) -> Union[float, "FloatCharacteristic"]:
59
if obj is None:
60
return self
61
return super().__get__(obj)[0]
0 commit comments