mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
alpmfiles: fix typing
This commit is contained in:
parent
62ab3b05ef
commit
ac57d8fd15
1 changed files with 2 additions and 1 deletions
|
@ -4,10 +4,11 @@
|
||||||
from asyncio import create_subprocess_exec
|
from asyncio import create_subprocess_exec
|
||||||
from asyncio.subprocess import PIPE
|
from asyncio.subprocess import PIPE
|
||||||
import re
|
import re
|
||||||
|
from typing import Tuple, List
|
||||||
|
|
||||||
from nvchecker.api import GetVersionError
|
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
|
dbpath, pkg = info
|
||||||
# there's no pyalpm bindings for the file databases
|
# there's no pyalpm bindings for the file databases
|
||||||
cmd = ['pacman', '-Flq', '--dbpath', dbpath, pkg]
|
cmd = ['pacman', '-Flq', '--dbpath', dbpath, pkg]
|
||||||
|
|
Loading…
Add table
Reference in a new issue