Skip to content

Commit

Permalink
Bump aiohttp from 3.10.10 to 3.11.7 (#1035)
Browse files Browse the repository at this point in the history
* Bump aiohttp from 3.10.10 to 3.11.7

Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.10.10 to 3.11.7.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](aio-libs/aiohttp@v3.10.10...v3.11.7)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* add missing types for generic

* add missing types for generic

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
  • Loading branch information
3 people authored Nov 27, 2024
1 parent 8c30c82 commit c961c92
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-e .
aiohttp==3.10.10
aiohttp==3.11.7
aiomcache==0.8.2
cryptography==43.0.3
docker==7.1.0
Expand Down
2 changes: 1 addition & 1 deletion tests/test_abstract_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .typedefs import AiohttpClient


def make_cookie(client: TestClient, data: Dict[str, Any]) -> None:
def make_cookie(client: TestClient[web.Request, web.Application], data: Dict[str, Any]) -> None:
session_data = {"session": data, "created": int(time.time())}

value = json.dumps(session_data)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cookie_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .typedefs import AiohttpClient


def make_cookie(client: TestClient, data: Dict[str, Any]) -> None:
def make_cookie(client: TestClient[web.Request, web.Application], data: Dict[str, Any]) -> None:
session_data = {"session": data, "created": int(time.time())}

value = json.dumps(session_data)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_encrypted_cookie_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
MAX_AGE = 1


def make_cookie(client: TestClient, fernet: Fernet, data: Dict[str, Any]) -> None:
def make_cookie(client: TestClient[web.Request, web.Application], fernet: Fernet, data: Dict[str, Any]) -> None:
session_data = {"session": data, "created": int(time.time())}

cookie_data = json.dumps(session_data).encode("utf-8")
Expand Down
6 changes: 3 additions & 3 deletions tests/test_memcached_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_app(


async def make_cookie(
client: TestClient, memcached: aiomcache.Client, data: Dict[str, Any]
client: TestClient[web.Request, web.Application], memcached: aiomcache.Client, data: Dict[str, Any]
) -> None:
session_data = {"session": data, "created": int(time.time())}
value = json.dumps(session_data)
Expand All @@ -41,7 +41,7 @@ async def make_cookie(


async def make_cookie_with_bad_value(
client: TestClient, memcached: aiomcache.Client
client: TestClient[web.Request, web.Application], memcached: aiomcache.Client
) -> None:
key = uuid.uuid4().hex
storage_key = ("AIOHTTP_SESSION_" + key).encode("utf-8")
Expand All @@ -50,7 +50,7 @@ async def make_cookie_with_bad_value(


async def load_cookie(
client: TestClient, memcached: aiomcache.Client
client: TestClient[web.Request, web.Application], memcached: aiomcache.Client
) -> Dict[str, Any]:
cookies = client.session.cookie_jar.filter_cookies(client.make_url("/"))
key = cookies["AIOHTTP_SESSION"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_nacl_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_invalid_key() -> None:


def make_cookie(
client: TestClient, secretbox: nacl.secret.SecretBox, data: Dict[str, Any]
client: TestClient[web.Request, web.Application], secretbox: nacl.secret.SecretBox, data: Dict[str, Any]
) -> None:
session_data = {"session": data, "created": int(time.time())}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_path_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def make_cookie(
client: TestClient,
client: TestClient[web.Request, web.Application],
data: Any,
path: Optional[str] = None,
domain: Optional[str] = None,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_redis_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create_app(


async def make_cookie(
client: TestClient, redis: aioredis.Redis, data: dict[Any, Any]
client: TestClient[web.Request, web.Application], redis: aioredis.Redis, data: dict[Any, Any]
) -> None:
session_data = {"session": data, "created": int(time.time())}
value = json.dumps(session_data)
Expand All @@ -43,13 +43,13 @@ async def make_cookie(
client.session.cookie_jar.update_cookies({"AIOHTTP_SESSION": key})


async def make_cookie_with_bad_value(client: TestClient, redis: aioredis.Redis) -> None:
async def make_cookie_with_bad_value(client: TestClient[web.Request, web.Application], redis: aioredis.Redis) -> None:
key = uuid.uuid4().hex
await redis.set("AIOHTTP_SESSION_" + key, "")
client.session.cookie_jar.update_cookies({"AIOHTTP_SESSION": key})


async def load_cookie(client: TestClient, redis: aioredis.Redis) -> Any:
async def load_cookie(client: TestClient[web.Request, web.Application], redis: aioredis.Redis) -> Any:
cookies = client.session.cookie_jar.filter_cookies(client.make_url("/"))
key = cookies["AIOHTTP_SESSION"]
value_bytes = await redis.get("AIOHTTP_SESSION_" + key.value)
Expand Down
2 changes: 1 addition & 1 deletion tests/typedefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from aiohttp import web
from aiohttp.test_utils import TestClient

AiohttpClient = Callable[[web.Application], Awaitable[TestClient]]
AiohttpClient = Callable[[web.Application], Awaitable[TestClient[web.Request, web.Application]]]

0 comments on commit c961c92

Please sign in to comment.