Fix type of click.Path path_type arg (#2066)

path_type takes a *type*, rather than instance of the type
This commit is contained in:
Aaron Miller
2018-04-17 23:32:02 -07:00
committed by Jelle Zijlstra
parent 5223b26ec8
commit 8e62a79970

View File

@@ -1,4 +1,4 @@
from typing import Any, Callable, IO, Iterable, List, Optional, TypeVar, Union, Tuple as _PyTuple
from typing import Any, Callable, IO, Iterable, List, Optional, TypeVar, Union, Tuple as _PyTuple, Type
import uuid
from click.core import Context, Parameter
@@ -184,7 +184,7 @@ class Path(ParamType):
readable: bool = ...,
resolve_path: bool = ...,
allow_dash: bool = ...,
path_type: Optional[_PathType] = ...,
path_type: Optional[Type[_PathType]] = ...,
) -> None:
...