From 37bfb8d5fe9e5cce5d9b40da3751403cea02ae8a Mon Sep 17 00:00:00 2001 From: Gabriel Schowe Date: Wed, 18 Sep 2024 15:39:57 +0200 Subject: [PATCH] Iterator --- pontos/github/api/packages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pontos/github/api/packages.py b/pontos/github/api/packages.py index 230319459..920a33441 100644 --- a/pontos/github/api/packages.py +++ b/pontos/github/api/packages.py @@ -115,7 +115,7 @@ async def package( async def package_versions( self, organization: str, package_type: PackageType, package_name: str - ) -> AsyncIterator[PackageVersion]: + ): """ Get information about package versions @@ -348,7 +348,7 @@ async def delete_package_with_tag( ) """ - async for version in await self.package_versions(organization, package_type, package_name): + async for version in self.package_versions(organization, package_type, package_name): if version.tags == tag: await self.delete_package_version(organization, package_type, package_name, version.version) return