Fixed type hinting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-04-15 00:33:37 +02:00
parent 2b3d994cc2
commit ff24b9d2e9

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import sys import sys
from typing import Optional
from config import Config from config import Config
from plugins import SleepPlugin, SyncPlugin, WaitPlugin, URRTDEPlugin, LogPlugin from plugins import SleepPlugin, SyncPlugin, WaitPlugin, URRTDEPlugin, LogPlugin
from plugin_repository import PluginRepository from plugin_repository import PluginRepository
@ -15,7 +16,7 @@ from program_loader import load_program
class HTTPControl: class HTTPControl:
def __init__(self, executor: ProgramExecutor, wait_plugin: WaitPlugin): def __init__(self, executor: ProgramExecutor, wait_plugin: Optional[WaitPlugin]):
self._executor_ref = weakref.ref(executor) self._executor_ref = weakref.ref(executor)
if wait_plugin: if wait_plugin: