build: Add a couple of type annotations for the Interpreter to use

This commit is contained in:
Dylan Baker 2022-02-28 15:55:19 -08:00
parent 82f43ba8c5
commit b07d4bb206
1 changed files with 2 additions and 2 deletions

View File

@ -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