Updated for type hinting

This commit is contained in:
Dimitris Zlatanidis 2023-03-01 23:31:35 +02:00
parent d9a26485d4
commit ca47e89c93

View file

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