Skip to content

Commit 7a53f73

Browse files
committed
Linting: Satisfy most recent ruff 0.15.0
1 parent 370d791 commit 7a53f73

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/crate/client/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def next(self):
193193
else:
194194
raise ProgrammingError("Cursor closed")
195195

196-
__next__ = next
196+
__next__ = next # noqa: A003
197197

198198
@property
199199
def description(self):

tests/client/test_cursor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ def test_execute_custom_converter(mocked_connection):
250250
# Extends the DefaultTypeConverter
251251
converter = DefaultTypeConverter(
252252
{
253-
DataType.BIT: lambda value: value is not None
254-
and int(value[2:-1], 2)
255-
or None
253+
DataType.BIT: lambda value: (
254+
value is not None and int(value[2:-1], 2) or None
255+
)
256256
}
257257
)
258258
cursor = mocked_connection.cursor(converter=converter)

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def doctest_node():
227227

228228

229229
class HttpsServer(HTTPServer):
230-
231230
PORT = 65534
232231
HOST = "localhost"
233232
CERT_FILE = assets_path("pki/server_valid.pem")

0 commit comments

Comments
 (0)