Skip to content

Commit b7982b4

Browse files
authored
Use 3.13 for sphinx install (#1059)
1 parent 4e14245 commit b7982b4

File tree

8 files changed

+30
-10
lines changed

8 files changed

+30
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Python
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: 3.9
25+
python-version: 3.13
2626
cache: 'pip'
2727
cache-dependency-path: '**/requirements*.txt'
2828
- name: Install dependencies

tests/test_abstract_storage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
from .typedefs import AiohttpClient
1414

1515

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

1921
value = json.dumps(session_data)

tests/test_cookie_storage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
from .typedefs import AiohttpClient
1717

1818

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

2224
value = json.dumps(session_data)

tests/test_encrypted_cookie_storage.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
MAX_AGE = 1
1919

2020

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

2428
cookie_data = json.dumps(session_data).encode("utf-8")

tests/test_memcached_storage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def create_app(
3030

3131

3232
async def make_cookie(
33-
client: TestClient[web.Request, web.Application], memcached: aiomcache.Client, data: Dict[str, Any]
33+
client: TestClient[web.Request, web.Application],
34+
memcached: aiomcache.Client,
35+
data: Dict[str, Any],
3436
) -> None:
3537
session_data = {"session": data, "created": int(time.time())}
3638
value = json.dumps(session_data)

tests/test_nacl_storage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def test_invalid_key() -> None:
2323

2424

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

tests/test_redis_storage.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def create_app(
3434

3535

3636
async def make_cookie(
37-
client: TestClient[web.Request, web.Application], redis: aioredis.Redis, data: dict[Any, Any]
37+
client: TestClient[web.Request, web.Application],
38+
redis: aioredis.Redis,
39+
data: dict[Any, Any],
3840
) -> None:
3941
session_data = {"session": data, "created": int(time.time())}
4042
value = json.dumps(session_data)
@@ -43,13 +45,17 @@ async def make_cookie(
4345
client.session.cookie_jar.update_cookies({"AIOHTTP_SESSION": key})
4446

4547

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

5155

52-
async def load_cookie(client: TestClient[web.Request, web.Application], redis: aioredis.Redis) -> Any:
56+
async def load_cookie(
57+
client: TestClient[web.Request, web.Application], redis: aioredis.Redis
58+
) -> Any:
5359
cookies = client.session.cookie_jar.filter_cookies(client.make_url("/"))
5460
key = cookies["AIOHTTP_SESSION"]
5561
value_bytes = await redis.get("AIOHTTP_SESSION_" + key.value)

tests/typedefs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
from aiohttp import web
44
from aiohttp.test_utils import TestClient
55

6-
AiohttpClient = Callable[[web.Application], Awaitable[TestClient[web.Request, web.Application]]]
6+
AiohttpClient = Callable[
7+
[web.Application], Awaitable[TestClient[web.Request, web.Application]]
8+
]

0 commit comments

Comments
 (0)