Skip to content

Commit 41af0e2

Browse files
chore: linting
1 parent 6d6dff5 commit 41af0e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roborock/local_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def is_closed(self):
105105

106106
class RoborockSocketListener(asyncio.Protocol):
107107
roborock_port = 58867
108+
transport: Transport
108109

109110
def __init__(
110111
self,
@@ -119,7 +120,6 @@ def __init__(
119120
self.on_message = on_message
120121
self.timeout = timeout
121122
self.remaining = b""
122-
self.transport: Transport | None = None
123123

124124
def data_received(self, message):
125125
if self.remaining:

roborock/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import asyncio
44
import functools
55
from asyncio import AbstractEventLoop
6-
from typing import TypeVar
6+
from typing import Optional, TypeVar
77

88
T = TypeVar("T")
99

1010

11-
def unpack_list(value: list[T], size: int) -> list[T | None]:
11+
def unpack_list(value: list[T], size: int) -> list[Optional[T]]:
1212
return (value + [None] * size)[:size]
1313

1414

0 commit comments

Comments
 (0)