mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[click-web] Fixes after click 8.2.0 release (#14001)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user