[click-web] Fixes after click 8.2.0 release (#14001)

This commit is contained in:
Jelle Zijlstra
2025-05-10 16:39:55 -07:00
committed by GitHub
parent c4aa48a626
commit 58367a50d5
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -13,4 +13,4 @@ OUTPUT_FOLDER: str
_flask_app: flask.Flask | None
logger: logging.Logger | None
def create_click_web_app(module: types.ModuleType, command: click.BaseCommand, root: str = "/") -> flask.Flask: ...
def create_click_web_app(module: types.ModuleType, command: click.Command, root: str = "/") -> flask.Flask: ...
@@ -1,3 +1,4 @@
import sys
from typing import Any, ClassVar, Final
import click
@@ -46,7 +47,10 @@ class BaseInput:
def _build_name(self, name: str): ...
class ChoiceInput(BaseInput):
param_type_cls: type[click.Choice]
if sys.version_info >= (3, 10):
param_type_cls: type[click.Choice[Any]]
else:
param_type_cls: type[click.Choice]
class FlagInput(BaseInput):
param_type_cls: None