build: add annotations for DependencyOverride

pull/9187/head
Dylan Baker 3 years ago
parent b2b4c374fc
commit b791b47c3b
  1. 5
      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

Loading…
Cancel
Save