diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-10 15:20:34 -0700 |
|---|---|---|
| committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-09-30 21:01:38 +0200 |
| commit | d7bb0acbe3fdfb95757387c006d4b675affc2663 (patch) | |
| tree | 4aeaf4d68a099a3c14a24eb7da2d1bea9aabf83d | |
| parent | cb762f29fe178d38c2b2fa29b5c9baec1f0edd90 (diff) | |
| download | meson-d7bb0acbe3fdfb95757387c006d4b675affc2663.tar.gz | |
build: Add type annotations to AliasTarget
It's just a RunTarget with one default value overriden
| -rw-r--r-- | mesonbuild/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 367366dde..9aad7a337 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2583,7 +2583,8 @@ class RunTarget(Target, CommandBase): return "@run" class AliasTarget(RunTarget): - def __init__(self, name, dependencies, subdir, subproject): + def __init__(self, name: str, dependencies: T.Sequence[T.Union[BuildTarget, 'CustomTarget']], + subdir: str, subproject: str): super().__init__(name, [], dependencies, subdir, subproject) def __repr__(self): |
