mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-07 17:14:09 +02:00
Revert "Remove from typing_extensions import Self, refs #842"
This reverts commit cf6a12568b.
This commit is contained in:
parent
cf6a12568b
commit
8541829c2d
1 changed files with 3 additions and 1 deletions
|
|
@ -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__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue