mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
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:
committed by
Jelle Zijlstra
parent
5223b26ec8
commit
8e62a79970
4
third_party/2and3/click/types.pyi
vendored
4
third_party/2and3/click/types.pyi
vendored
@@ -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:
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user