Skip to content

Commit

Permalink
Type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielschowe committed Sep 18, 2024
1 parent ef61741 commit 0119e47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pontos/github/api/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ async def delete_package_with_tag(
async for package_version in self.package_versions(
organization, package_type, package_name
):
if tag in self.package_version_tags(organization, package_type, package_name, package_version):
api = f"/orgs/{organization}/packages/{package_type}/{package_name}/versions/{package_version}"
if tag in await self.package_version_tags(organization, package_type, package_name, package_version.version):
api = f"/orgs/{organization}/packages/{package_type}/{package_name}/versions/{package_version.version}"
response = await self._client.delete(api)

Check warning on line 359 in pontos/github/api/packages.py

View check run for this annotation

Codecov / codecov/patch

pontos/github/api/packages.py#L358-L359

Added lines #L358 - L359 were not covered by tests
if not response.is_success:
raise GitHubApiError(response)

Check warning on line 361 in pontos/github/api/packages.py

View check run for this annotation

Codecov / codecov/patch

pontos/github/api/packages.py#L361

Added line #L361 was not covered by tests
Expand Down

0 comments on commit 0119e47

Please sign in to comment.