Skip to content

Commit a803973

Browse files
committed
coding: solve 2 more mypy annotations
Signed-off-by: MichaIng <micha@dietpi.com>
1 parent 71beb1d commit a803973

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

motioneye/mjpgclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _on_connect(self, future: Future) -> None:
186186

187187
self._seek_http()
188188

189-
def _seek_http(self, future: Future | bool = False) -> None:
189+
def _seek_http(self, future: Future | None = None) -> None:
190190
result, _ = self._get_future_result(future) if future else (True, False)
191191

192192
if not result or self._check_error():

motioneye/utils/rtsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_rtsp_url(data: dict) -> 'Future[GetCamerasResponse]':
4242
stream: IOStream | None = None
4343

4444
io_loop = IOLoop.current()
45-
future = Future()
45+
future: Future = Future()
4646

4747
def connect() -> None:
4848
nonlocal stream

0 commit comments

Comments
 (0)