alpmfiles: fix typing

This commit is contained in:
lilydjwg 2023-06-02 00:35:05 +08:00
parent 62ab3b05ef
commit ac57d8fd15

View File

@ -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]