From a2cae005ec08145d6b6c11c8091d24abc96f8f62 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 3 Mar 2021 10:52:48 -0500 Subject: build: Fix backend type --- mesonbuild/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 8dc56c1b4..10d6e3cd9 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -41,6 +41,7 @@ from .interpreterbase import FeatureNew if T.TYPE_CHECKING: from .interpreter import Test from .mesonlib import FileMode, FileOrString + from .mesonlib.backend import Backend pch_kwargs = set(['c_pch', 'cpp_pch']) @@ -2218,7 +2219,7 @@ class CustomTarget(Target, CommandBase): ]) def __init__(self, name: str, subdir: str, subproject: str, kwargs: T.Dict[str, T.Any], - absolute_paths: bool = False, backend: T.Optional[str] = None): + absolute_paths: bool = False, backend: T.Optional['Backend'] = None): self.typename = 'custom' # TODO expose keyword arg to make MachineChoice.HOST configurable super().__init__(name, subdir, subproject, False, MachineChoice.HOST) -- cgit v1.2.3