diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-02-28 15:55:19 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-03-03 10:29:14 -0800 |
commit | b07d4bb2068f90bfbb0aa6e6ea91412db29388ea (patch) | |
tree | 017e8c9049b56d914f1a5a642b0358a9b88a7895 /mesonbuild/build.py | |
parent | 82f43ba8c5a1140456407d6cfa98f401d3657c7b (diff) | |
download | meson-b07d4bb2068f90bfbb0aa6e6ea91412db29388ea.zip meson-b07d4bb2068f90bfbb0aa6e6ea91412db29388ea.tar.gz meson-b07d4bb2068f90bfbb0aa6e6ea91412db29388ea.tar.bz2 |
build: Add a couple of type annotations for the Interpreter to use
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index bb57ec8..b9a3dc2 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 |