diff --git a/.gitignore b/.gitignore index 1c241b9..4e78294 100644 --- a/.gitignore +++ b/.gitignore @@ -106,3 +106,4 @@ ENV/ # Editors .vscode/ +.idea/ diff --git a/aiosqlite/cursor.py b/aiosqlite/cursor.py index 197938f..6e1f59f 100644 --- a/aiosqlite/cursor.py +++ b/aiosqlite/cursor.py @@ -108,8 +108,8 @@ def row_factory(self, factory: Optional[Type]) -> None: self._cursor.row_factory = factory @property - def connection(self) -> sqlite3.Connection: - return self._cursor.connection + def connection(self) -> "Connection": + return self._conn async def __aenter__(self): return self