Module: check_mk
Branch: master
Commit: 8274da536f2668bd5528777c6177457c694e4b61
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8274da536f2668…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 16 21:46:43 2019 +0200
Add type annotation to help mypy
Change-Id: Iebc6856dcb9a93f37c80693b1cbcc351ef3d9289
---
cmk_base/automations/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmk_base/automations/__init__.py b/cmk_base/automations/__init__.py
index cc6e486..0ac6c3c 100644
--- a/cmk_base/automations/__init__.py
+++ b/cmk_base/automations/__init__.py
@@ -27,6 +27,7 @@
import signal
import sys
import pprint
+from typing import Optional # pylint: disable=unused-import
import cmk.utils.debug
from cmk.utils.exceptions import MKTimeout
@@ -115,7 +116,7 @@ class Automations(object):
class Automation(object):
- cmd = None
+ cmd = None # type: Optional[str]
needs_checks = False
needs_config = False