forked from auracaster/bumble_mirror
python 3.9 compat
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
import serial_asyncio
|
import serial_asyncio
|
||||||
|
|
||||||
@@ -51,7 +52,7 @@ class SerialPacketSource(StreamPacketSource):
|
|||||||
logger.debug('connection made')
|
logger.debug('connection made')
|
||||||
self._ready.set()
|
self._ready.set()
|
||||||
|
|
||||||
def connection_lost(self, exc: Exception | None) -> None:
|
def connection_lost(self, exc: Optional[Exception]) -> None:
|
||||||
logger.debug('connection lost')
|
logger.debug('connection lost')
|
||||||
self.on_transport_lost()
|
self.on_transport_lost()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user