@@ -15,9 +15,11 @@ class CompositeParamType(ParamType):
1515
1616class Choice (ParamType ):
1717 choices : Iterable [str ]
18+ case_sensitive : bool
1819 def __init__ (self , choices : Iterable [str ], case_sensitive : bool = ...) -> None : ...
1920
2021class DateTime (ParamType ):
22+ formats : Iterable [str ]
2123 def __init__ (self , formats : Optional [List [str ]] = ...) -> None : ...
2224 def convert (self , value : str , param : Optional [Parameter ], ctx : Optional [Context ]) -> datetime .datetime : ...
2325
@@ -26,9 +28,17 @@ class FloatParamType(ParamType):
2628 def convert (self , value : str , param : Optional [Parameter ], ctx : Optional [Context ]) -> float : ...
2729
2830class FloatRange (FloatParamType ):
31+ min : Optional [float ]
32+ max : Optional [float ]
33+ clamp : bool
2934 def __init__ (self , min : Optional [float ] = ..., max : Optional [float ] = ..., clamp : bool = ...) -> None : ...
3035
3136class File (ParamType ):
37+ mode : str
38+ encoding : Optional [str ]
39+ errors : str
40+ lazy : Optional [str ]
41+ atomic : bool
3242 def __init__ (
3343 self ,
3444 mode : str = ...,
@@ -55,11 +65,22 @@ class IntParamType(ParamType):
5565 def convert (self , value : str , param : Optional [Parameter ], ctx : Optional [Context ]) -> int : ...
5666
5767class IntRange (IntParamType ):
68+ min : Optional [int ]
69+ max : Optional [int ]
70+ clamp : bool
5871 def __init__ (self , min : Optional [int ] = ..., max : Optional [int ] = ..., clamp : bool = ...) -> None : ...
5972
6073_PathType = TypeVar ("_PathType" , str , bytes )
6174
6275class Path (ParamType ):
76+ exists : bool
77+ file_okay : bool
78+ dir_okay : bool
79+ writable : bool
80+ readable : bool
81+ resolve_path : bool
82+ allow_dash : bool
83+ type : Optional [Type [_PathType ]]
6384 def __init__ (
6485 self ,
6586 exists : bool = ...,
0 commit comments