Revert "Remove from typing_extensions import Self, refs #842"

This reverts commit cf6a12568b.
This commit is contained in:
Simon Willison 2026-08-13 16:39:19 -07:00
commit 8541829c2d

View file

@ -24,6 +24,8 @@ 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 (
@ -635,7 +637,7 @@ class Database:
pm.hook.prepare_connection(conn=self.conn)
self.strict = strict
def __enter__(self):
def __enter__(self) -> Self:
return self
def __exit__(