Other typing adjustments for dumb Python 3.5 compatibility

This commit is contained in:
Fabio Manganiello 2019-12-23 21:49:16 +01:00
parent 36835a1706
commit 5d5e8b54ae
3 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -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()

View File

@ -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: