From b07d4bb2068f90bfbb0aa6e6ea91412db29388ea Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 28 Feb 2022 15:55:19 -0800 Subject: [PATCH] build: Add a couple of type annotations for the Interpreter to use --- mesonbuild/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index bb57ec854..b9a3dc29d 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -279,7 +279,7 @@ class Build: custom_targets[name] = t return custom_targets - def copy(self): + def copy(self) -> Build: other = Build(self.environment) for k, v in self.__dict__.items(): if isinstance(v, (list, dict, set, OrderedDict)): @@ -288,7 +288,7 @@ class Build: other.__dict__[k] = v return other - def merge(self, other): + def merge(self, other: Build) -> None: for k, v in other.__dict__.items(): self.__dict__[k] = v