From 8fe803d4c207eb2242fdf192af56541c2608ca76 Mon Sep 17 00:00:00 2001 From: Stefan Hansson <newbyte@postmarketos.org> Date: Mon, 20 May 2024 18:22:56 +0200 Subject: [PATCH] mrtest.apk_installed: Add return type hint for get_installed_all --- mrtest/apk_installed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mrtest/apk_installed.py b/mrtest/apk_installed.py index 72831a9..a63fe26 100644 --- a/mrtest/apk_installed.py +++ b/mrtest/apk_installed.py @@ -5,11 +5,12 @@ import logging import os import subprocess +from typing import Optional cache_installed_all = None -def get_installed_all(): +def get_installed_all() -> dict[str, Optional[str]]: global cache_installed_all if cache_installed_all: -- GitLab