Other typing adjustments for dumb Python 3.5 compatibility
This commit is contained in:
parent
36835a1706
commit
5d5e8b54ae
3 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ class CameraPiPlugin(CameraPlugin):
|
||||||
self._time_lapse_stop_condition = threading.Condition()
|
self._time_lapse_stop_condition = threading.Condition()
|
||||||
self._recording_stop_condition = threading.Condition()
|
self._recording_stop_condition = threading.Condition()
|
||||||
self._streaming_stop_condition = threading.Condition()
|
self._streaming_stop_condition = threading.Condition()
|
||||||
self._output: Optional[StreamingOutput] = None
|
self._output = None
|
||||||
|
|
||||||
# noinspection PyUnresolvedReferences,PyPackageRequirements
|
# noinspection PyUnresolvedReferences,PyPackageRequirements
|
||||||
def _get_camera(self, **opts):
|
def _get_camera(self, **opts):
|
||||||
|
|
|
@ -51,7 +51,7 @@ class GpioSensorDistancePlugin(GpioPlugin, GpioSensorPlugin):
|
||||||
self.measurement_interval = measurement_interval
|
self.measurement_interval = measurement_interval
|
||||||
self.timeout = timeout
|
self.timeout = timeout
|
||||||
self.warmup_time = warmup_time
|
self.warmup_time = warmup_time
|
||||||
self._measurement_thread: Optional[threading.Thread] = None
|
self._measurement_thread = None
|
||||||
self._measurement_thread_lock = threading.RLock()
|
self._measurement_thread_lock = threading.RLock()
|
||||||
self._measurement_thread_can_run = False
|
self._measurement_thread_can_run = False
|
||||||
self._init_board()
|
self._init_board()
|
||||||
|
|
|
@ -92,7 +92,7 @@ class Workers:
|
||||||
# noinspection PyArgumentList
|
# noinspection PyArgumentList
|
||||||
self._workers = [worker_type(self.request_queue, self.response_queue, *args, **kwargs)
|
self._workers = [worker_type(self.request_queue, self.response_queue, *args, **kwargs)
|
||||||
for _ in range(n_workers)]
|
for _ in range(n_workers)]
|
||||||
self.responses: list = []
|
self.responses = []
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
for wrk in self._workers:
|
for wrk in self._workers:
|
||||||
|
|
Loading…
Reference in a new issue