fix: pin typer>=0.24.0 and click>=8.2.1 to fix import crash (#2136)

typer <0.24.0 under-constrains its click dependency (click>=8.0.0),
allowing resolvers to pick click <8.2 which lacks __class_getitem__
on click.Choice. This causes 'TypeError: type Choice is not
subscriptable' at import time on any Python version.

Pin typer>=0.24.0 (which correctly requires click>=8.2.1) and
click>=8.2.1 to prevent incompatible combinations.

Fixes #2134
This commit is contained in:
Manfred Riem
2026-04-08 17:49:19 -05:00
committed by GitHub
parent cb0d9612ef
commit 1c41aacbac

View File

@@ -4,8 +4,8 @@ version = "0.5.1.dev0"
description = "Specify CLI, part of GitHub Spec Kit. A tool to bootstrap your projects for Spec-Driven Development (SDD)."
requires-python = ">=3.11"
dependencies = [
"typer",
"click>=8.1",
"typer>=0.24.0",
"click>=8.2.1",
"rich",
"platformdirs",
"readchar",