summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 08326c6f3..8e006ea6b 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -931,7 +931,8 @@ class Element(Plugin):
(str): The resolved value for *varname*, or None if no
variable was declared with the given name.
"""
- return self.__variables.flat.get(varname)
+ # Flat is not recognized correctly by Pylint as being a dictionary
+ return self.__variables.flat.get(varname) # pylint: disable=no-member
def batch_prepare_assemble(self, flags, *, collect=None):
""" Configure command batching across prepare() and assemble()