From ac57d8fd155098279fd0f18ffa700aff0842ec99 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Fri, 2 Jun 2023 00:35:05 +0800 Subject: [PATCH] alpmfiles: fix typing --- nvchecker_source/alpmfiles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvchecker_source/alpmfiles.py b/nvchecker_source/alpmfiles.py index c8ff85a..558c93f 100644 --- a/nvchecker_source/alpmfiles.py +++ b/nvchecker_source/alpmfiles.py @@ -4,10 +4,11 @@ from asyncio import create_subprocess_exec from asyncio.subprocess import PIPE import re +from typing import Tuple, List from nvchecker.api import GetVersionError -async def get_files(info: tuple) -> list: +async def get_files(info: Tuple[str, str]) -> List[str]: dbpath, pkg = info # there's no pyalpm bindings for the file databases cmd = ['pacman', '-Flq', '--dbpath', dbpath, pkg]