Skip to content

Commit

Permalink
Fix typing problems pyre has with aiohttp 3.10.1. (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Aug 5, 2024
1 parent d1cb894 commit 31ca84e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/antsibull/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ async def download_porting_guide(self, aio_session: aiohttp.client.ClientSession
)

query_url = f"{branch_url}/{get_porting_guide_filename(self.latest)}"
async with aio_session.get(query_url) as response:
async with aio_session.get(query_url) as response: # pyre-ignore[16]
self.porting_guide = await response.read()


Expand Down
2 changes: 1 addition & 1 deletion src/antsibull/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(self, aio_session: aiohttp.ClientSession) -> None:

async def get_release(self, package: str, version: str) -> Release:
url = urljoin(PYPI_BASE_URL, f"{package}/{version}/json")
async with self.aio_session.get(url) as resp:
async with self.aio_session.get(url) as resp: # pyre-ignore[16]
resp.raise_for_status()
data = await resp.json()
return Release(**data)
Expand Down

0 comments on commit 31ca84e

Please sign in to comment.