From ca47e89c935a5c46e5fa68bc9ee62a3f77c3fcab Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 1 Mar 2023 23:31:35 +0200 Subject: [PATCH] Updated for type hinting --- slpkg/slackbuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index 3116b6d6..a640df57 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -198,7 +198,7 @@ class Slackbuilds(Configs): exist = self.session.query(LogsDependencies.name).filter( LogsDependencies.name == name).first() - requires = Requires(name).resolve() + requires: list = Requires(name).resolve() # Update the dependencies if exist else create it. if exist: @@ -208,7 +208,7 @@ class Slackbuilds(Configs): {LogsDependencies.requires: ' '.join(requires)}) elif requires: - deps = LogsDependencies(name=name, requires=' '.join(requires)) + deps: list = LogsDependencies(name=name, requires=' '.join(requires)) self.session.add(deps) self.session.commit()