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):
105105
106106class 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 :
Original file line number Diff line number Diff line change 33import asyncio
44import functools
55from asyncio import AbstractEventLoop
6- from typing import TypeVar
6+ from typing import Optional , TypeVar
77
88T = 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
You can’t perform that action at this time.
0 commit comments