Commit ·
6601767
1
Parent(s): 99f80f8
Fix: asyncio.coroutine removed in Python 3.12, use Coroutine type hint
Browse files
reachy_mini_ha_voice/zeroconf.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
import asyncio
|
| 4 |
import logging
|
| 5 |
import socket
|
| 6 |
-
from typing import Callable, Optional, TYPE_CHECKING
|
| 7 |
|
| 8 |
from .util import get_mac
|
| 9 |
|
|
@@ -87,7 +87,7 @@ class SendspinDiscovery:
|
|
| 87 |
when a server is found.
|
| 88 |
"""
|
| 89 |
|
| 90 |
-
def __init__(self, on_server_found: Callable[[str],
|
| 91 |
"""Initialize Sendspin discovery.
|
| 92 |
|
| 93 |
Args:
|
|
|
|
| 3 |
import asyncio
|
| 4 |
import logging
|
| 5 |
import socket
|
| 6 |
+
from typing import Any, Callable, Coroutine, Optional, TYPE_CHECKING
|
| 7 |
|
| 8 |
from .util import get_mac
|
| 9 |
|
|
|
|
| 87 |
when a server is found.
|
| 88 |
"""
|
| 89 |
|
| 90 |
+
def __init__(self, on_server_found: Callable[[str], "Coroutine[Any, Any, None]"]) -> None:
|
| 91 |
"""Initialize Sendspin discovery.
|
| 92 |
|
| 93 |
Args:
|