modules/qt: Return GeneratedListHolder instead of GeneratedList

This really shouldn't be necissary, but fixing the typing annotations of
ModuleReturnValue is much harder than just returning the Holder
directly.
This commit is contained in:
Dylan Baker 2021-06-02 11:24:22 -07:00
parent ec48dbd2d6
commit 2a8a6bb881
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ from . import ModuleReturnValue, ExtensionModule
from ..interpreterbase import ContainerTypeInfo, FeatureDeprecated, KwargInfo, noPosargs, FeatureNew, typed_kwargs
from ..interpreter import extract_required_kwarg
from ..programs import NonExistingExternalProgram
from ..interpreter.interpreterobjects import DependencyHolder, ExternalLibraryHolder, IncludeDirsHolder, FeatureOptionHolder
from ..interpreter.interpreterobjects import DependencyHolder, ExternalLibraryHolder, IncludeDirsHolder, FeatureOptionHolder, GeneratedListHolder
if T.TYPE_CHECKING:
from . import ModuleState
@ -350,7 +350,7 @@ class QtBaseModule(ExtensionModule):
kwargs['extra_args'] + ['-o', '@OUTPUT@', '@INPUT@'],
['ui_@BASENAME@.h'],
name=f'Qt{self.qt_version} ui')
out = gen.process_files(kwargs['sources'], state)
out = GeneratedListHolder(gen.process_files(kwargs['sources'], state))
return ModuleReturnValue(out, [out])
@FeatureNew('qt.compile_moc', '0.59.0')