Skip to content

Commit 1ed1737

Browse files
Bump mypy from 1.5.1 to 1.7.1 (#2357)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
1 parent d29d993 commit 1ed1737

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Testing
55
coverage==7.3.2
66
importlib-metadata==6.9.0
7-
mypy==1.5.1
7+
mypy==1.7.1
88
ruff==0.1.6
99
typing_extensions==4.8.0
1010
types-contextvars==2.4.7.3

tests/test_responses.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import datetime as dt
22
import os
33
import time
4-
import typing
54
from http.cookies import SimpleCookie
65

76
import anyio
@@ -344,9 +343,7 @@ async def app(scope, receive, send):
344343

345344
client = test_client_factory(app)
346345
response = client.get("/")
347-
cookie: "SimpleCookie[typing.Any]" = SimpleCookie(
348-
response.headers.get("set-cookie")
349-
)
346+
cookie = SimpleCookie(response.headers.get("set-cookie"))
350347
assert cookie["mycookie"]["expires"] == "Thu, 22 Jan 2037 12:00:10 GMT"
351348

352349

0 commit comments

Comments
 (0)