aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/uninstall.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/scripts/uninstall.py')
-rw-r--r--mesonbuild/scripts/uninstall.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/scripts/uninstall.py b/mesonbuild/scripts/uninstall.py
index bdc036b..b648de4 100644
--- a/mesonbuild/scripts/uninstall.py
+++ b/mesonbuild/scripts/uninstall.py
@@ -13,10 +13,11 @@
# limitations under the License.
import os
+import typing as T
logfile = 'meson-logs/install-log.txt'
-def do_uninstall(log):
+def do_uninstall(log: str) -> None:
failures = 0
successes = 0
for line in open(log):
@@ -38,7 +39,7 @@ def do_uninstall(log):
print('Failed:', failures)
print('\nRemember that files created by custom scripts have not been removed.')
-def run(args):
+def run(args: T.List[str]) -> int:
if args:
print('Weird error.')
return 1