From 09a1528ce0897e21c2cae1f6fd9772ce2b30cd55 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 30 Sep 2021 15:50:35 -0700 Subject: [PATCH] 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 --- mesonbuild/modules/__init__.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index d09fa865c..bd62b6e77 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -198,21 +198,16 @@ class ModuleReturnValue: self.new_objects = new_objects class GResourceTarget(build.CustomTarget): - def __init__(self, name, subdir, subproject, kwargs): - super().__init__(name, subdir, subproject, kwargs) + pass class GResourceHeaderTarget(build.CustomTarget): - def __init__(self, name, subdir, subproject, kwargs): - super().__init__(name, subdir, subproject, kwargs) + pass class GirTarget(build.CustomTarget): - def __init__(self, name, subdir, subproject, kwargs): - super().__init__(name, subdir, subproject, kwargs) + pass class TypelibTarget(build.CustomTarget): - def __init__(self, name, subdir, subproject, kwargs): - super().__init__(name, subdir, subproject, kwargs) + pass class VapiTarget(build.CustomTarget): - def __init__(self, name, subdir, subproject, kwargs): - super().__init__(name, subdir, subproject, kwargs) + pass