mirror of
https://github.com/usestrix/strix.git
synced 2026-09-23 00:41:50 +00: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:
parent
65d495bb7f
commit
910c1ea4bb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue