From 6f8008cd7df4e3fa662cb7f63323f18d100ed88f Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 5 Dec 2021 14:17:44 -0500 Subject: 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. --- mesonbuild/backend/backends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 8e62d38..89febcb 100644 --- a/mesonbuild/backend/backends.py +++ b/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 -- cgit v1.1