From ca5490f021338095e9339c78997dcabb6759f396 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 3 Sep 2024 15:46:03 -0700 Subject: machinefile: Make fully typesafe With the use of `typing_extensions.TypeAlias` we can get recursive types, which solves most of the issues we had with this file. --- run_mypy.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'run_mypy.py') diff --git a/run_mypy.py b/run_mypy.py index f72e96b3d..7ed9720c0 100755 --- a/run_mypy.py +++ b/run_mypy.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +# Copyright © 2024 Intel Corporation from pathlib import Path import argparse @@ -38,6 +40,7 @@ modules = [ 'mesonbuild/interpreter/mesonmain.py', 'mesonbuild/interpreter/interpreterobjects.py', 'mesonbuild/interpreter/type_checking.py', + 'mesonbuild/machinefile.py', 'mesonbuild/mcompile.py', 'mesonbuild/mdevenv.py', 'mesonbuild/utils/core.py', -- cgit v1.2.3