From 285db19876abf8e9aca153a5a1dc9684e9bb188a Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Thu, 21 Mar 2024 14:54:30 +0100 Subject: [PATCH] tools/osbuild-depsolve-dnf5: type annotation Silence the mypy linter. --- tools/osbuild-depsolve-dnf5 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/osbuild-depsolve-dnf5 b/tools/osbuild-depsolve-dnf5 index 903adfc1..a09fac0e 100755 --- a/tools/osbuild-depsolve-dnf5 +++ b/tools/osbuild-depsolve-dnf5 @@ -13,6 +13,7 @@ import sys import tempfile import traceback from datetime import datetime +from typing import List import libdnf5 as dnf5 from libdnf5.base import GoalProblem_NO_PROBLEM as NO_PROBLEM @@ -305,7 +306,7 @@ class Solver(): def depsolve(self, transactions): """depsolve returns a list of the dependencies for the set of transactions """ - last_transaction = [] + last_transaction: List = [] for transaction in transactions: goal = dnf5.base.Goal(self.base)