mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-10-01 03:43:42 +08:00
mypy: use implicit-optional (#31590)
* mypy: set implicit-optional = true * find and replace '| None = None' -> '= None' in function args
This commit is contained in:
@@ -109,7 +109,7 @@ class ManagerProcess(ABC):
|
||||
else:
|
||||
self.watchdog_seen = True
|
||||
|
||||
def stop(self, retry: bool = True, block: bool = True, sig: signal.Signals | None = None) -> int | None:
|
||||
def stop(self, retry: bool = True, block: bool = True, sig: signal.Signals = None) -> int | None:
|
||||
if self.proc is None:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user