Skip to content

Commit f6d7311

Browse files
authored
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
1 parent 1d98613 commit f6d7311

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ jobs:
5353
run: |
5454
pip install uv
5555
uv run ty check sqlite_utils
56+
- name: Check no accidental dev= dependencies needed
57+
if: matrix.os == 'ubuntu-latest'
58+
run: |
59+
pip install uv
60+
uv run --no-default-groups sqlite-utils --help
5661
- name: Check formatting
5762
run: black . --check
5863
- name: Check if cog needs to be run

‎sqlite_utils/db.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
)
2525

2626
from sqlite_fts4 import rank_bm25
27-
from typing_extensions import Self
28-
2927
from sqlite_utils.plugins import ensure_plugins_loaded, pm
3028

3129
from .create_table_parser import (
@@ -637,7 +635,7 @@ def __init__(
637635
pm.hook.prepare_connection(conn=self.conn)
638636
self.strict = strict
639637

640-
def __enter__(self) -> Self:
638+
def __enter__(self):
641639
return self
642640

643641
def __exit__(

0 commit comments

Comments
 (0)