From ec8a7e560c89514b7e4dafde1cfc78a1e531c635 Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Fri, 30 Aug 2024 15:35:25 +0100 Subject: [PATCH] scripts: twister: add type hint to twister_main.py Twister main expects an instance of TwisterEnv. Let's the linter know about this. Signed-off-by: Wilfried Chauveau --- scripts/pylib/twister/twisterlib/twister_main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/twister_main.py b/scripts/pylib/twister/twisterlib/twister_main.py index b813713a1ce8b99..5a31771c2bc339c 100644 --- a/scripts/pylib/twister/twisterlib/twister_main.py +++ b/scripts/pylib/twister/twisterlib/twister_main.py @@ -3,6 +3,7 @@ # Copyright (c) 2022 Google # SPDX-License-Identifier: Apache-2.0 +import argparse import colorama import logging import os @@ -63,7 +64,7 @@ def init_color(colorama_strip): colorama.init(strip=colorama_strip) -def main(options, default_options): +def main(options: argparse.Namespace, default_options): start_time = time.time() # Configure color output