aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/base.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-09-27 18:31:32 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-28 13:51:14 +0200
commitd9419a4f2a550171f5fce57672c6bdac43e74e85 (patch)
tree5794e5cc0d211a28b7b99fd2aa669077b67977ee /mesonbuild/dependencies/base.py
parent6a71391de6a5487a6cda7b273e955ae9c1e30ceb (diff)
downloadmeson-d9419a4f2a550171f5fce57672c6bdac43e74e85.zip
meson-d9419a4f2a550171f5fce57672c6bdac43e74e85.tar.gz
meson-d9419a4f2a550171f5fce57672c6bdac43e74e85.tar.bz2
typing: fully annotate cmake.executor
Diffstat (limited to 'mesonbuild/dependencies/base.py')
-rw-r--r--mesonbuild/dependencies/base.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
index aa513ba..99030e8 100644
--- a/mesonbuild/dependencies/base.py
+++ b/mesonbuild/dependencies/base.py
@@ -2052,26 +2052,26 @@ class ExternalProgram:
def get_command(self) -> T.List[str]:
return self.command[:]
- def get_path(self):
+ def get_path(self) -> str:
return self.path
- def get_name(self):
+ def get_name(self) -> str:
return self.name
class NonExistingExternalProgram(ExternalProgram): # lgtm [py/missing-call-to-init]
"A program that will never exist"
- def __init__(self, name='nonexistingprogram'):
+ def __init__(self, name: str = 'nonexistingprogram') -> None:
self.name = name
self.command = [None]
self.path = None
- def __repr__(self):
+ def __repr__(self) -> str:
r = '<{} {!r} -> {!r}>'
return r.format(self.__class__.__name__, self.name, self.command)
- def found(self):
+ def found(self) -> bool:
return False