Fixed Generator type hinting

This commit is contained in:
Dimitris Zlatanidis 2023-03-01 20:07:54 +02:00
parent ef498961dd
commit 34e7f2c749

View file

@ -77,7 +77,7 @@ class Dependees(Configs, Utilities):
print(f'\n{self.grey}{len(dependees)} dependees for {pkg}{self.endc}\n') print(f'\n{self.grey}{len(dependees)} dependees for {pkg}{self.endc}\n')
def find_requires(self, sbo: str) -> Generator[str]: def find_requires(self, sbo: str) -> Generator[str, None, None]:
""" Find requires that slackbuild dependees. """ """ Find requires that slackbuild dependees. """
requires: list = self.session.query(SBoTable.name, SBoTable.requires).all() requires: list = self.session.query(SBoTable.name, SBoTable.requires).all()
for req in requires: for req in requires: