From 910c1ea4bbf22f8c01ab6c2a54bad09b94ccbc3b Mon Sep 17 00:00:00 2001 From: alex s <46074070+bearsyankees@users.noreply.github.com> Date: Wed, 16 Sep 2026 14:25:38 -0400 Subject: [PATCH] fix(build): keep the TUI sidecar hook importable on hatchling 1.32.1 (#1325) 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