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

@ -12,7 +12,7 @@ import time
"""Various internal test commands for performance testing and debugging."""
def apkindex_parse_all():
def apkindex_parse_all() -> None:
indexes = pmb.helpers.repo.apkindex_files(Arch.native())
pkgs = 0
@ -26,9 +26,9 @@ def apkindex_parse_all():
class Test(commands.Command):
def __init__(self, action: str):
def __init__(self, action: str) -> None:
self.action = action
def run(self):
def run(self) -> None:
if self.action == "apkindex_parse_all":
apkindex_parse_all()