Fix for sqlite-utils 4.2 crashing bug (#843)

- Remove from typing_extensions import Self
- Smoke test: uv run --no-default-groups sqlite-utils --help

Closes #842
This commit is contained in:
Simon Willison 2026-08-13 16:52:03 -07:00 committed by GitHub
commit f6d73112c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -24,8 +24,6 @@ from typing import (
)
from sqlite_fts4 import rank_bm25
from typing_extensions import Self
from sqlite_utils.plugins import ensure_plugins_loaded, pm
from .create_table_parser import (
@ -637,7 +635,7 @@ class Database:
pm.hook.prepare_connection(conn=self.conn)
self.strict = strict
def __enter__(self) -> Self:
def __enter__(self):
return self
def __exit__(