Skip to content

Commit a0000f2

Browse files
simonwclaude
andcommitted
Add type: ignore for optional pysqlite3 and sqlean imports
These are alternative sqlite3 implementations that may not be installed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 8a54c8b commit a0000f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqlite_utils/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
from . import recipes
1616

1717
try:
18-
import pysqlite3 as sqlite3 # noqa: F401
19-
from pysqlite3 import dbapi2 # noqa: F401
18+
import pysqlite3 as sqlite3 # type: ignore[import-not-found] # noqa: F401
19+
from pysqlite3 import dbapi2 # type: ignore[import-not-found] # noqa: F401
2020

2121
OperationalError = dbapi2.OperationalError
2222
except ImportError:
2323
try:
24-
import sqlean as sqlite3 # noqa: F401
25-
from sqlean import dbapi2 # noqa: F401
24+
import sqlean as sqlite3 # type: ignore[import-not-found] # noqa: F401
25+
from sqlean import dbapi2 # type: ignore[import-not-found] # noqa: F401
2626

2727
OperationalError = dbapi2.OperationalError
2828
except ImportError:

0 commit comments

Comments
 (0)