diff options
-rw-r--r-- | mesonbuild/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 8dc56c1..10d6e3c 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) |