# sqlite-utils 发布 4.2.1 版本，修复了因缺少 typing-extensions 依赖导致的崩溃 bug，并介绍了使用 uv 进行隔离测试的方法

- 来源：Simon Willison
- 发布时间：2026-08-14 07:53
- AIWatch 分数：44
- AIWatch 标记：未精选
- AIWatch 链接：https://aiwatch.icu/events/evt_01kzyttcgn6fq205pg02grfzq1
- 原文链接：https://simonwillison.net/2026/Aug/13/sqlite-utils-2/

## 精选理由

常规快讯，保留列表

## AI 摘要

sqlite-utils 发布 4.2.1 版本，修复了因缺少 typing-extensions 依赖导致的崩溃 bug，并介绍了使用 uv 进行隔离测试的方法。

## 正文

Release: sqlite-utils 4.2.1

Fixes a crashing bug in sqlite-utils 4.2. I'd introduced code that looks like this:

from typing_extensions import Self

It turned out the typing-extensions package was not listed as a dependency for sqlite-utils - it was installed by one of the other dependencies in the dev dependency group, but when you uvx sqlite-utils directly you don't get those dependencies.

As part of fixing this I figured out how to run a smoke test to ensure the CLI tool still works even without those dev dependencies, which can be run from the project checkout:

uv run --isolated --no-default-groups sqlite-utils --help

The --no-default-groups argument prevents it from installing that default dev group, and --isolated means that even if there is a .venv/ folder containing extra dependencies they will be ignored for the duration of that uv run command.

Tags: packaging, python, sqlite-utils, uv
