Skip to content

Commit c1fb129

Browse files
authored
Update ruff target-version to py310 (#20328)
Disable https://docs.astral.sh/ruff/rules/zip-without-explicit-strict/ Ref: #20154
1 parent 66bfe8c commit c1fb129

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mypy/ipc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def __enter__(self) -> IPCServer:
272272
else:
273273
try:
274274
self.connection, _ = self.sock.accept()
275-
except socket.timeout as e:
275+
except TimeoutError as e:
276276
raise IPCException("The socket timed out") from e
277277
return self
278278

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ force-exclude = '''
116116

117117
[tool.ruff]
118118
line-length = 99
119-
target-version = "py39"
119+
target-version = "py310"
120120
fix = true
121121

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

0 commit comments

Comments
 (0)