Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mypy/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def __enter__(self) -> IPCServer:
else:
try:
self.connection, _ = self.sock.accept()
except socket.timeout as e:
except TimeoutError as e:
raise IPCException("The socket timed out") from e
return self

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ force-exclude = '''

[tool.ruff]
line-length = 99
target-version = "py39"
target-version = "py310"
fix = true

extend-exclude = [
Expand Down Expand Up @@ -160,6 +160,7 @@ ignore = [
"B007", # Loop control variable not used within the loop body.
"B011", # Don't use assert False
"B023", # Function definition does not bind loop variable
"B905", # zip-without-explicit-strict
"E2", # conflicts with black
"E402", # module level import not at top of file
"E501", # conflicts with black
Expand Down