modules: remove harmful forwarding init methods

There is no reason for these inititializers to exist, all they do is
defer to the parent initializer. Worse, since they are not type
annotated thy prevent the parent type annotations from being used
pull/9506/head
Dylan Baker 4 years ago
parent 7f8961897a
commit 09a1528ce0
  1. 15
      mesonbuild/modules/__init__.py

@ -198,21 +198,16 @@ class ModuleReturnValue:
self.new_objects = new_objects self.new_objects = new_objects
class GResourceTarget(build.CustomTarget): class GResourceTarget(build.CustomTarget):
def __init__(self, name, subdir, subproject, kwargs): pass
super().__init__(name, subdir, subproject, kwargs)
class GResourceHeaderTarget(build.CustomTarget): class GResourceHeaderTarget(build.CustomTarget):
def __init__(self, name, subdir, subproject, kwargs): pass
super().__init__(name, subdir, subproject, kwargs)
class GirTarget(build.CustomTarget): class GirTarget(build.CustomTarget):
def __init__(self, name, subdir, subproject, kwargs): pass
super().__init__(name, subdir, subproject, kwargs)
class TypelibTarget(build.CustomTarget): class TypelibTarget(build.CustomTarget):
def __init__(self, name, subdir, subproject, kwargs): pass
super().__init__(name, subdir, subproject, kwargs)
class VapiTarget(build.CustomTarget): class VapiTarget(build.CustomTarget):
def __init__(self, name, subdir, subproject, kwargs): pass
super().__init__(name, subdir, subproject, kwargs)

Loading…
Cancel
Save