aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreterbase.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-12-07 20:48:44 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-03-02 10:34:55 +0100
commitc48b0dea275a4a4aa80d4fd2700e82c230f27467 (patch)
tree5c5c55ea73defb585ac0071d9a125808dbd354fb /mesonbuild/interpreterbase.py
parenta75255bc4ce992721bf9f94c3d64ee10c77d7191 (diff)
downloadmeson-c48b0dea275a4a4aa80d4fd2700e82c230f27467.zip
meson-c48b0dea275a4a4aa80d4fd2700e82c230f27467.tar.gz
meson-c48b0dea275a4a4aa80d4fd2700e82c230f27467.tar.bz2
types: Annotate ast/interpreter.py
Diffstat (limited to 'mesonbuild/interpreterbase.py')
-rw-r--r--mesonbuild/interpreterbase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreterbase.py b/mesonbuild/interpreterbase.py
index 152c65b..2865a95 100644
--- a/mesonbuild/interpreterbase.py
+++ b/mesonbuild/interpreterbase.py
@@ -360,12 +360,12 @@ def is_disabled(args, kwargs) -> bool:
return False
class InterpreterBase:
- def __init__(self, source_root, subdir):
+ def __init__(self, source_root: str, subdir: str, subproject: str) -> None:
self.source_root = source_root
self.funcs = {}
self.builtin = {}
self.subdir = subdir
- self.variables = {}
+ self.subproject = subproject
self.argument_depth = 0
self.current_lineno = -1
# Current node set during a function call. This can be used as location