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/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/scripts/__init__.py') diff --git a/mesonbuild/scripts/__init__.py b/mesonbuild/scripts/__init__.py index af6bedc17..2edbe8899 100644 --- a/mesonbuild/scripts/__init__.py +++ b/mesonbuild/scripts/__init__.py @@ -12,7 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -def destdir_join(d1, d2): +# TODO: consider switching to pathlib for this +def destdir_join(d1: str, d2: str) -> str: # c:\destdir + c:\prefix must produce c:\destdir\prefix if len(d1) > 1 and d1[1] == ':' \ and len(d2) > 1 and d2[1] == ':': -- cgit v1.2.3