mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-14 05:14:22 +02:00
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:
parent
1d98613f28
commit
f6d73112c8
2 changed files with 6 additions and 3 deletions
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
|
@ -53,6 +53,11 @@ jobs:
|
|||
run: |
|
||||
pip install uv
|
||||
uv run ty check sqlite_utils
|
||||
- name: Check no accidental dev= dependencies needed
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
pip install uv
|
||||
uv run --no-default-groups sqlite-utils --help
|
||||
- name: Check formatting
|
||||
run: black . --check
|
||||
- name: Check if cog needs to be run
|
||||
|
|
|
|||
|
|
@ -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__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue