diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-10 14:21:39 -0700 |
|---|---|---|
| committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-09-30 21:01:38 +0200 |
| commit | d80cfa27c96abd44aaf4df3c274d2f2d4c30ec47 (patch) | |
| tree | 92f01eadc78c0d6fe1d54769018655e49e566d52 /mesonbuild | |
| parent | 7e43432a0c1a2a951fa10bf2fd6930db9d4c4fcc (diff) | |
| download | meson-d80cfa27c96abd44aaf4df3c274d2f2d4c30ec47.tar.gz | |
build: Add a couple of obvious annotations to RunTarget
Diffstat (limited to 'mesonbuild')
| -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 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): |
