aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/build.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 9a13531..0143022 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -44,10 +44,11 @@ from .interpreterbase import FeatureNew
if T.TYPE_CHECKING:
from ._typing import ImmutableListProtocol, ImmutableSetProtocol
+ from .backend.backends import Backend, ExecutableSerialisation
from .interpreter.interpreter import Test, SourceOutputs, Interpreter
from .mesonlib import FileMode, FileOrString
from .modules import ModuleState
- from .backend.backends import Backend, ExecutableSerialisation
+ from .mparser import BaseNode
GeneratedTypes = T.Union['CustomTarget', 'CustomTargetIndex', 'GeneratedList']
@@ -130,7 +131,7 @@ class InvalidArguments(MesonException):
pass
class DependencyOverride(HoldableObject):
- def __init__(self, dep, node, explicit=True):
+ def __init__(self, dep: dependencies.Dependency, node: 'BaseNode', explicit: bool = True):
self.dep = dep
self.node = node
self.explicit = explicit