summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-07-02 15:30:12 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-07-15 10:59:22 -0700
commitf574beffb4d7e26ba21d1bbc5ad6f36a23df0bfc (patch)
tree587ab9ceffd7a7c68054a370f8b5cdc60f0c8b52 /mesonbuild/compilers/compilers.py
parent5d685e7a5c5d2705591d908ec985b6cc8994c4d9 (diff)
downloadmeson-f574beffb4d7e26ba21d1bbc5ad6f36a23df0bfc.tar.gz
compilers/mixins/elbrus: add type annotations and fix types
There is a pretty big error in here, trying to return a tuple comperhension: (a for a in []) is not a tuple, it's a generator. This has profound type annotations: generators don't support most tuple or list methods, and they can only be iterated once. Beyond that tuples are meant for heterogenous types, ie, position matters for types. I've converted the output to a list in all cases.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 6e914a61d..eebb6e636 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -937,7 +937,7 @@ class Compiler:
return ()
def get_program_dirs(self, *args, **kwargs):
- return ()
+ return []
def has_multi_arguments(self, args, env) -> Tuple[bool, bool]:
raise EnvironmentException(