mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 05:24:26 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
8a54c8b2d9
commit
a0000f2b26
1 changed files with 4 additions and 4 deletions
|
|
@ -15,14 +15,14 @@ import click
|
||||||
from . import recipes
|
from . import recipes
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pysqlite3 as sqlite3 # noqa: F401
|
import pysqlite3 as sqlite3 # type: ignore[import-not-found] # noqa: F401
|
||||||
from pysqlite3 import dbapi2 # noqa: F401
|
from pysqlite3 import dbapi2 # type: ignore[import-not-found] # noqa: F401
|
||||||
|
|
||||||
OperationalError = dbapi2.OperationalError
|
OperationalError = dbapi2.OperationalError
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
import sqlean as sqlite3 # noqa: F401
|
import sqlean as sqlite3 # type: ignore[import-not-found] # noqa: F401
|
||||||
from sqlean import dbapi2 # noqa: F401
|
from sqlean import dbapi2 # type: ignore[import-not-found] # noqa: F401
|
||||||
|
|
||||||
OperationalError = dbapi2.OperationalError
|
OperationalError = dbapi2.OperationalError
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue