aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/compilers/compilers.py6
-rw-r--r--mesonbuild/interpreter.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 3400c48..14e6f2d 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -646,13 +646,13 @@ class CompilerArgs(list):
return new
def __mul__(self, args):
- raise TypeError("can't multiply compiler arguments")
+ raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method]
def __imul__(self, args):
- raise TypeError("can't multiply compiler arguments")
+ raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method]
def __rmul__(self, args):
- raise TypeError("can't multiply compiler arguments")
+ raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method]
def append(self, arg):
self.__iadd__([arg])
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 7388e91..c431b93 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -883,10 +883,10 @@ class CustomTargetHolder(TargetHolder):
return CustomTargetIndexHolder(self.held_object[index])
def __setitem__(self, index, value):
- raise InterpreterException('Cannot set a member of a CustomTarget')
+ raise InterpreterException('Cannot set a member of a CustomTarget') # lgtm[py/unexpected-raise-in-special-method]
def __delitem__(self, index):
- raise InterpreterException('Cannot delete a member of a CustomTarget')
+ raise InterpreterException('Cannot delete a member of a CustomTarget') # lgtm[py/unexpected-raise-in-special-method]
def outdir_include(self):
return IncludeDirsHolder(build.IncludeDirs('', [], False,