mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/usestrix/strix.git
synced 2026-09-20 08:03:42 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user