tools/osbuild-depsolve-dnf5: type annotation

Silence the mypy linter.
This commit is contained in:
Achilleas Koutsou 2024-03-21 14:54:30 +01:00 committed by Brian C. Lane
parent b05258fa26
commit 285db19876

View file

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