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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ dev = [
"mypy<1.20",
"pytest<10",
"pytz",
"ruff<0.15",
"ruff<0.16",
]
docs = [
"sphinx",
Expand Down
3 changes: 2 additions & 1 deletion src/crate/client/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def next(self):
else:
raise ProgrammingError("Cursor closed")

__next__ = next
def __next__(self):
return self.next()

@property
def description(self):
Expand Down
6 changes: 3 additions & 3 deletions tests/client/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ def test_execute_custom_converter(mocked_connection):
# Extends the DefaultTypeConverter
converter = DefaultTypeConverter(
{
DataType.BIT: lambda value: value is not None
and int(value[2:-1], 2)
or None
DataType.BIT: lambda value: (
value is not None and int(value[2:-1], 2) or None
)
}
)
cursor = mocked_connection.cursor(converter=converter)
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ def doctest_node():


class HttpsServer(HTTPServer):

PORT = 65534
HOST = "localhost"
CERT_FILE = assets_path("pki/server_valid.pem")
Expand Down
Loading