Skip to content

Commit b9b278f

Browse files
alex-anthropicnjsmith
authored andcommitted
fix dependencies
1 parent f285548 commit b9b278f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ hypercorn = "hypercorn.__main__:main"
5555
[tool.poetry.extras]
5656
docs = ["pydata_sphinx_theme", "sphinxcontrib_mermaid"]
5757
h3 = ["aioquic"]
58-
trio = ["exceptiongroup", "trio"]
58+
trio = ["trio"]
5959
uvloop = ["uvloop"]
6060

6161
[tool.black]

src/hypercorn/trio/tcp_server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import sys
43
from math import inf
54
from typing import Any, Generator, Optional
65

@@ -50,12 +49,12 @@ async def run(self) -> None:
5049
socket = self.stream.socket
5150
ssl = False
5251

53-
def log_handler(e: Exception):
52+
def log_handler(e: Exception) -> None:
5453
if self.config.log.error_logger is not None:
5554
self.config.log.error_logger.exception("Internal hypercorn error")
5655

5756
try:
58-
with exceptiongroup.catch({Exception: log_handler}):
57+
with exceptiongroup.catch({Exception: log_handler}): # type: ignore
5958
client = parse_socket_addr(socket.family, socket.getpeername())
6059
server = parse_socket_addr(socket.family, socket.getsockname())
6160

0 commit comments

Comments
 (0)