From d80cfa27c96abd44aaf4df3c274d2f2d4c30ec47 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 10 Aug 2021 14:21:39 -0700 Subject: [PATCH] build: Add a couple of obvious annotations to RunTarget --- mesonbuild/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index e22f1b1b8..8ecb25932 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2541,7 +2541,7 @@ class RunTarget(Target, CommandBase): self.absolute_paths = False self.env = env - def __repr__(self): + def __repr__(self) -> str: repr_str = "<{0} {1}: {2}>" return repr_str.format(self.__class__.__name__, self.get_id(), self.command[0]) @@ -2571,7 +2571,7 @@ class RunTarget(Target, CommandBase): else: raise RuntimeError('RunTarget: self.name is neither a list nor a string. This is a bug') - def type_suffix(self): + def type_suffix(self) -> str: return "@run" class AliasTarget(RunTarget):