lgtm: ignore Non-standard exception raised in special method

pull/6289/head
Daniel Mensinger 5 years ago committed by Jussi Pakkanen
parent fa4de71faf
commit 454e323d3d
  1. 6
      mesonbuild/compilers/compilers.py
  2. 4
      mesonbuild/interpreter.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])

@ -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,

Loading…
Cancel
Save