mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-29 13:24:12 +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: |
|
run: |
|
||||||
pip install uv
|
pip install uv
|
||||||
uv run ty check sqlite_utils
|
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
|
- name: Check formatting
|
||||||
run: black . --check
|
run: black . --check
|
||||||
- name: Check if cog needs to be run
|
- name: Check if cog needs to be run
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@ from typing import (
|
||||||
)
|
)
|
||||||
|
|
||||||
from sqlite_fts4 import rank_bm25
|
from sqlite_fts4 import rank_bm25
|
||||||
from typing_extensions import Self
|
|
||||||
|
|
||||||
from sqlite_utils.plugins import ensure_plugins_loaded, pm
|
from sqlite_utils.plugins import ensure_plugins_loaded, pm
|
||||||
|
|
||||||
from .create_table_parser import (
|
from .create_table_parser import (
|
||||||
|
|
@ -637,7 +635,7 @@ class Database:
|
||||||
pm.hook.prepare_connection(conn=self.conn)
|
pm.hook.prepare_connection(conn=self.conn)
|
||||||
self.strict = strict
|
self.strict = strict
|
||||||
|
|
||||||
def __enter__(self) -> Self:
|
def __enter__(self):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __exit__(
|
def __exit__(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue