mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
gflags: Add DEFINE_multi_enum. (#2783)
4f06c3d0d6/gflags/__init__.py (L800)
This commit is contained in:
committed by
Jelle Zijlstra
parent
5ef6cb7f46
commit
6850b9d699
6
third_party/2/gflags.pyi
vendored
6
third_party/2/gflags.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Dict, Iterable, IO, List, Optional, Union
|
||||
from typing import Any, Callable, Dict, Iterable, IO, List, Optional, Sequence, Union
|
||||
from types import ModuleType
|
||||
|
||||
class Error(Exception): ...
|
||||
@@ -236,3 +236,7 @@ DEFINE_multi_int = DEFINE_multi_integer
|
||||
def DEFINE_multi_float(name: str, default: Optional[Union[float, List[float]]], help: str,
|
||||
lower_bound: float = ..., upper_bound: float = ...,
|
||||
flag_values: FlagValues = ..., **args: Any) -> None: ...
|
||||
|
||||
def DEFINE_multi_enum(name: str, default: Optional[Union[Sequence[str], str]],
|
||||
enum_values: Sequence[str], help: str,
|
||||
flag_values: FlagValues = ..., case_sensitive: bool = ..., **args: Any): ...
|
||||
|
||||
Reference in New Issue
Block a user