mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
correct version_option arguments in click (#966)
This commit is contained in:
committed by
Guido van Rossum
parent
f87dde0d1b
commit
0cb247e96f
4
third_party/3.6/click/decorators.pyi
vendored
4
third_party/3.6/click/decorators.pyi
vendored
@@ -1,3 +1,4 @@
|
||||
from distutils.version import Version
|
||||
from typing import Any, Callable, Dict, List, TypeVar, Union
|
||||
|
||||
from click.core import Command, Group, Argument, Option, Parameter, Context
|
||||
@@ -163,10 +164,11 @@ def password_option(
|
||||
|
||||
# Defaults copied from the decorator body.
|
||||
def version_option(
|
||||
version: str = None,
|
||||
version: Union[str, Version] = None,
|
||||
*param_decls: str,
|
||||
cls: type = Option,
|
||||
# Option
|
||||
prog_name: str = None,
|
||||
show_default: bool = False,
|
||||
prompt: bool = False,
|
||||
confirmation_prompt: bool = False,
|
||||
|
||||
Reference in New Issue
Block a user