File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ def is_closed(self):
105
105
106
106
class RoborockSocketListener (asyncio .Protocol ):
107
107
roborock_port = 58867
108
+ transport : Transport
108
109
109
110
def __init__ (
110
111
self ,
@@ -119,7 +120,6 @@ def __init__(
119
120
self .on_message = on_message
120
121
self .timeout = timeout
121
122
self .remaining = b""
122
- self .transport : Transport | None = None
123
123
124
124
def data_received (self , message ):
125
125
if self .remaining :
Original file line number Diff line number Diff line change 3
3
import asyncio
4
4
import functools
5
5
from asyncio import AbstractEventLoop
6
- from typing import TypeVar
6
+ from typing import Optional , TypeVar
7
7
8
8
T = TypeVar ("T" )
9
9
10
10
11
- def unpack_list (value : list [T ], size : int ) -> list [T | None ]:
11
+ def unpack_list (value : list [T ], size : int ) -> list [Optional [ T ] ]:
12
12
return (value + [None ] * size )[:size ]
13
13
14
14
You can’t perform that action at this time.
0 commit comments