Python: Relax restriction of flow through async with

This commit is contained in:
Rasmus Wriedt Larsen
2023-07-06 11:51:58 +02:00
parent 43af8d7ac5
commit 1f93e5b58d
2 changed files with 13 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ async def test():
resp = await s.request("method", url="url") # $ clientRequestUrlPart="url"
async with aiohttp.ClientSession() as session:
resp = await session.get("url") # $ MISSING: clientRequestUrlPart="url"
resp = await session.request(method="GET", url="url") # $ MISSING: clientRequestUrlPart="url"
resp = await session.get("url") # $ clientRequestUrlPart="url"
resp = await session.request(method="GET", url="url") # $ clientRequestUrlPart="url"
# other methods than GET
s = aiohttp.ClientSession()