forked from Mirror/pmbootstrap
pmb: Add more type hints (MR 2490)
This commit is contained in:
parent
206ba62417
commit
5ed5817e80
36 changed files with 174 additions and 120 deletions
|
@ -1,6 +1,7 @@
|
|||
# Copyright 2023 Clayton Craft
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
import os
|
||||
from pmb.core.arch import Arch
|
||||
from pmb.core.pkgrepo import pkgrepo_iglob
|
||||
from pmb.types import WithExtraRepos
|
||||
import pmb.helpers.pmaports
|
||||
|
@ -8,7 +9,7 @@ import pmb.helpers.package
|
|||
import pmb.parse
|
||||
|
||||
|
||||
def list_ui(arch):
|
||||
def list_ui(arch: Arch) -> list[tuple[str, str]]:
|
||||
"""Get all UIs, for which aports are available with their description.
|
||||
|
||||
:param arch: device architecture, for which the UIs must be available
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue