clean up even more function signatures in preparation for dataclasses

Names used in init functions are sometimes pointlessly different from
the class instance attributes they are immediately assigned to. They
would make more sense if defined properly.
pull/9510/head
Eli Schwartz 3 years ago
parent e77582b251
commit 6f8008cd7d
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 4
      mesonbuild/backend/backends.py

@ -217,7 +217,7 @@ class ExecutableSerialisation:
self.tag = tag
class TestSerialisation:
def __init__(self, name: str, project: str, suite: T.List[str], fname: T.List[str],
def __init__(self, name: str, project_name: str, suite: T.List[str], fname: T.List[str],
is_cross_built: bool, exe_wrapper: T.Optional[programs.ExternalProgram],
needs_exe_wrapper: bool, is_parallel: bool, cmd_args: T.List[str],
env: build.EnvironmentVariables, should_fail: bool,
@ -225,7 +225,7 @@ class TestSerialisation:
extra_paths: T.List[str], protocol: TestProtocol, priority: int,
cmd_is_built: bool, depends: T.List[str], version: str):
self.name = name
self.project_name = project
self.project_name = project_name
self.suite = suite
self.fname = fname
self.is_cross_built = is_cross_built

Loading…
Cancel
Save