File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 77 Callable ,
88 Iterable ,
99 Mapping ,
10+ Protocol ,
1011 Tuple ,
1112 Union ,
1213)
4950]
5051
5152Handler = Callable [["Request" ], Awaitable ["StreamResponse" ]]
52- Middleware = Callable [["Request" , Handler ], Awaitable ["StreamResponse" ]]
53+
54+
55+ class Middleware (Protocol ):
56+ def __call__ (
57+ self , request : "Request" , handler : Handler
58+ ) -> Awaitable ["StreamResponse" ]: ...
59+
5360
5461PathLike = Union [str , "os.PathLike[str]" ]
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ multidict==6.0.5
110110 # -r requirements/multidict.in
111111 # -r requirements/runtime-deps.in
112112 # yarl
113- mypy==1.10 .1 ; implementation_name == "cpython"
113+ mypy==1.11 .1 ; implementation_name == "cpython"
114114 # via
115115 # -r requirements/lint.in
116116 # -r requirements/test.in
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ multidict==6.0.5
107107 # via
108108 # -r requirements/runtime-deps.in
109109 # yarl
110- mypy==1.10 .1 ; implementation_name == "cpython"
110+ mypy==1.11 .1 ; implementation_name == "cpython"
111111 # via
112112 # -r requirements/lint.in
113113 # -r requirements/test.in
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ markdown-it-py==3.0.0
4040 # via rich
4141mdurl==0.1.2
4242 # via markdown-it-py
43- mypy==1.10 .1 ; implementation_name == "cpython"
43+ mypy==1.11 .1 ; implementation_name == "cpython"
4444 # via -r requirements/lint.in
4545mypy-extensions==1.0.0
4646 # via mypy
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ multidict==6.0.5
5353 # via
5454 # -r requirements/runtime-deps.in
5555 # yarl
56- mypy==1.10 .1 ; implementation_name == "cpython"
56+ mypy==1.11 .1 ; implementation_name == "cpython"
5757 # via -r requirements/test.in
5858mypy-extensions==1.0.0
5959 # via mypy
You can’t perform that action at this time.
0 commit comments