pmb: Add more type hints (MR 2490)

This commit is contained in:
Newbyte 2024-11-15 14:01:31 +01:00
parent 206ba62417
commit 5ed5817e80
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
36 changed files with 174 additions and 120 deletions

View file

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