Skip to content

Commit

Permalink
scripts: twister: add type hint to twister_main.py
Browse files Browse the repository at this point in the history
Twister main expects an instance of TwisterEnv. Let's the linter know
about this.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
  • Loading branch information
ithinuel authored and carlescufi committed Sep 12, 2024
1 parent 30dc833 commit a55bb95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/pylib/twister/twisterlib/twister_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (c) 2022 Google
# SPDX-License-Identifier: Apache-2.0

import argparse
import colorama
import logging
import os
Expand Down Expand Up @@ -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: argparse.Namespace):
start_time = time.time()

# Configure color output
Expand Down

0 comments on commit a55bb95

Please sign in to comment.