From 08047437fec4548473897fa924d2d0084cf6c1b4 Mon Sep 17 00:00:00 2001 From: Alex Schapiro Date: Wed, 16 Sep 2026 18:14:35 +0000 Subject: [PATCH] fix(build): keep the TUI sidecar hook importable on hatchling 1.32.1 hatchling 1.32.1 made BuildHookInterface a two-parameter generic, so subscripting it with one argument raises TypeError when the hook module is imported and every from-source build fails. Subclass the unsubscripted interface, which works on both the old and new generic signatures. --- scripts/tui_sidecar_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tui_sidecar_hook.py b/scripts/tui_sidecar_hook.py index 800aa778..01de6fdc 100644 --- a/scripts/tui_sidecar_hook.py +++ b/scripts/tui_sidecar_hook.py @@ -12,7 +12,7 @@ from typing import Any from hatchling.builders.hooks.plugin.interface import BuildHookInterface -class CustomBuildHook(BuildHookInterface[Any]): +class CustomBuildHook(BuildHookInterface): # type: ignore[type-arg] """Compile the Bubble Tea sidecar and ship it inside the wheel. The sidecar is the only interactive interface, so every wheel is a