From 21f2e813c7a32c8706413dd1eff75f6914973b8d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Sat, 4 Dec 2021 19:58:12 -0800 Subject: [PATCH] modules/qt: compeil_resources allow name to be unset Originally name should have been set to required=True, but since then the requirement to name CustomTargets (which compile_resources is a wrapper around) has been dropped. As such we just need to allow the default value of None through. Fixes: #9698 --- mesonbuild/modules/qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py index 269656250..3d29b646b 100644 --- a/mesonbuild/modules/qt.py +++ b/mesonbuild/modules/qt.py @@ -272,7 +272,7 @@ class QtBaseModule(ExtensionModule): @noPosargs @typed_kwargs( 'qt.compile_resources', - KwargInfo('name', str), + KwargInfo('name', (str, NoneType)), KwargInfo( 'sources', ContainerTypeInfo(list, (File, str, build.CustomTarget, build.CustomTargetIndex, build.GeneratedList), allow_empty=False),