forked from platypush/platypush
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._recording_stop_condition = threading.Condition()
|
||||
self._streaming_stop_condition = threading.Condition()
|
||||
self._output: Optional[StreamingOutput] = None
|
||||
self._output = None
|
||||
|
||||
# noinspection PyUnresolvedReferences,PyPackageRequirements
|
||||
def _get_camera(self, **opts):
|
||||
|
|
|
@ -51,7 +51,7 @@ class GpioSensorDistancePlugin(GpioPlugin, GpioSensorPlugin):
|
|||
self.measurement_interval = measurement_interval
|
||||
self.timeout = timeout
|
||||
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_can_run = False
|
||||
self._init_board()
|
||||
|
|
|
@ -92,7 +92,7 @@ class Workers:
|
|||
# noinspection PyArgumentList
|
||||
self._workers = [worker_type(self.request_queue, self.response_queue, *args, **kwargs)
|
||||
for _ in range(n_workers)]
|
||||
self.responses: list = []
|
||||
self.responses = []
|
||||
|
||||
def start(self):
|
||||
for wrk in self._workers:
|
||||
|
|
Loading…
Reference in a new issue