From 010f525cc5d632b2d7da5cf9b80a1b758841ba71 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 2 Dec 2022 11:47:11 -0800 Subject: interpreter: move TEST_KW from interpreter.py to type_checking.py Since it's also used in the rust module, it should be in a common place. Also rename from `TEST_KWARGS` to `TEST_KWS`, which is more in line with the `*_KW` naming scheme used in the type_checking module. --- mesonbuild/modules/rust.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/modules') diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py index 42034af..7f56fab 100644 --- a/mesonbuild/modules/rust.py +++ b/mesonbuild/modules/rust.py @@ -19,7 +19,7 @@ from . import ExtensionModule, ModuleReturnValue, ModuleInfo from .. import mlog from ..build import BothLibraries, BuildTarget, CustomTargetIndex, Executable, ExtractedObjects, GeneratedList, IncludeDirs, CustomTarget, StructuredSources from ..dependencies import Dependency, ExternalLibrary -from ..interpreter.interpreter import TEST_KWARGS, OUTPUT_KW +from ..interpreter.type_checking import TEST_KWS, OUTPUT_KW from ..interpreterbase import ContainerTypeInfo, InterpreterException, KwargInfo, typed_kwargs, typed_pos_args, noPosargs from ..mesonlib import File @@ -63,7 +63,7 @@ class RustModule(ExtensionModule): @typed_pos_args('rust.test', str, BuildTarget) @typed_kwargs( 'rust.test', - *TEST_KWARGS, + *TEST_KWS, KwargInfo('is_parallel', bool, default=False), KwargInfo( 'dependencies', -- cgit v1.1