File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ hypercorn = "hypercorn.__main__:main"
55
55
[tool .poetry .extras ]
56
56
docs = [" pydata_sphinx_theme" , " sphinxcontrib_mermaid" ]
57
57
h3 = [" aioquic" ]
58
- trio = [" exceptiongroup " , " trio" ]
58
+ trio = [" trio" ]
59
59
uvloop = [" uvloop" ]
60
60
61
61
[tool .black ]
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- import sys
4
3
from math import inf
5
4
from typing import Any , Generator , Optional
6
5
@@ -50,12 +49,12 @@ async def run(self) -> None:
50
49
socket = self .stream .socket
51
50
ssl = False
52
51
53
- def log_handler (e : Exception ):
52
+ def log_handler (e : Exception ) -> None :
54
53
if self .config .log .error_logger is not None :
55
54
self .config .log .error_logger .exception ("Internal hypercorn error" )
56
55
57
56
try :
58
- with exceptiongroup .catch ({Exception : log_handler }):
57
+ with exceptiongroup .catch ({Exception : log_handler }): # type: ignore
59
58
client = parse_socket_addr (socket .family , socket .getpeername ())
60
59
server = parse_socket_addr (socket .family , socket .getsockname ())
61
60
You can’t perform that action at this time.
0 commit comments