From a4f4379c44c7f13bc9e44bc01504077af1f3a338 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Sat, 29 Aug 2020 21:23:43 +0200 Subject: typing: fully annotate scripts --- mesonbuild/scripts/delwithsuffix.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/scripts/delwithsuffix.py') diff --git a/mesonbuild/scripts/delwithsuffix.py b/mesonbuild/scripts/delwithsuffix.py index 0d410ae..873db0d 100644 --- a/mesonbuild/scripts/delwithsuffix.py +++ b/mesonbuild/scripts/delwithsuffix.py @@ -13,8 +13,9 @@ # limitations under the License. import os, sys +import typing as T -def run(args): +def run(args: T.List[str]) -> int: if len(args) != 2: print('delwithsuffix.py ') sys.exit(1) -- cgit v1.1