Skip to content

Commit 748bdfe

Browse files
Export async adapter classes from sqlalchemydqlite.aio
AsyncAdaptedConnection and AsyncAdaptedCursor are already imported by tests and are part of the intended surface of the async dialect module. Add them to __all__ so the public API is explicit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 47ec0c1 commit 748bdfe

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/sqlalchemydqlite/aio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from dqlitedbapi.exceptions import InterfaceError, NotSupportedError, OperationalError
1515
from sqlalchemydqlite.base import DqliteDialect
1616

17-
__all__ = ["DqliteDialect_aio"]
17+
__all__ = ["AsyncAdaptedConnection", "AsyncAdaptedCursor", "DqliteDialect_aio"]
1818

1919

2020
class AsyncAdaptedCursor:

tests/test_async_adapter.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,13 @@ def test_close_propagates_programming_error_from_rollback(self) -> None:
201201
pytest.raises(AttributeError),
202202
):
203203
adapted.close()
204+
205+
206+
class TestAioAllExports:
207+
"""Adapter classes are part of the supported public surface."""
208+
209+
def test_all_includes_adapter_classes(self) -> None:
210+
import sqlalchemydqlite.aio as aio_mod
211+
212+
expected = {"AsyncAdaptedConnection", "AsyncAdaptedCursor", "DqliteDialect_aio"}
213+
assert expected.issubset(set(aio_mod.__all__))

0 commit comments

Comments
 (0)