File tree 3 files changed +4
-11
lines changed
3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 36
36
hooks :
37
37
- id : flake8
38
38
- repo : https://github.com/pre-commit/mirrors-mypy
39
- rev : v1.11.1
39
+ rev : v1.11.2
40
40
hooks :
41
41
- id : mypy
42
- additional_dependencies : [types-all ]
42
+ additional_dependencies : [flask, types-setuptools, types-pyyaml ]
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def before_request() -> None:
40
40
41
41
42
42
@app .teardown_request
43
- def teardown_request (_ : Exception | None ) -> None :
43
+ def teardown_request (_ : object ) -> None :
44
44
flask .g .config = None
45
45
flask .g .db .close ()
46
46
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import json
4
- from typing import TYPE_CHECKING
5
4
6
5
import flask .testing
7
6
import pyquery
@@ -26,13 +25,7 @@ def json(self):
26
25
return json .loads (self .text )
27
26
28
27
29
- if TYPE_CHECKING :
30
- ClientBase = flask .testing .FlaskClient [Response ]
31
- else :
32
- ClientBase = flask .testing .FlaskClient
33
-
34
-
35
- class Client (ClientBase ):
28
+ class Client (flask .testing .FlaskClient ):
36
29
"""A Client wraps the client given by flask to add other utilities."""
37
30
38
31
def open (self , * args , ** kwargs ):
You can’t perform that action at this time.
0 commit comments