X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=kernel_hardening_checker%2Fengine.py;h=f6282fe540382895fa30f28f2c62dfa9c868475f;hb=36bfc8b21e6c84f59e4182bb359b34e8904202d0;hp=1e69c791727b858dc3d04e46750da2e8545d3051;hpb=dfa658fbd02239fa6481f97e6f81a42db3d9f871;p=kconfig-hardened-check.git diff --git a/kernel_hardening_checker/engine.py b/kernel_hardening_checker/engine.py index 1e69c79..f6282fe 100644 --- a/kernel_hardening_checker/engine.py +++ b/kernel_hardening_checker/engine.py @@ -11,9 +11,12 @@ This module is the engine of checks. # pylint: disable=missing-class-docstring,missing-function-docstring # pylint: disable=line-too-long,invalid-name,too-many-branches -from typing import Dict, Tuple import sys +from typing import Optional, Dict, Tuple +StrOrNone = Optional[str] +TupleOrNone = Optional[Tuple] + GREEN_COLOR = '\x1b[32m' RED_COLOR = '\x1b[31m' COLOR_END = '\x1b[0m'