From 8e62a79970227aa331f8070e64151002b7dfddea Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Tue, 17 Apr 2018 23:32:02 -0700 Subject: [PATCH] Fix type of click.Path path_type arg (#2066) path_type takes a *type*, rather than instance of the type --- third_party/2and3/click/types.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/2and3/click/types.pyi b/third_party/2and3/click/types.pyi index 80642d8f6..59325f45d 100644 --- a/third_party/2and3/click/types.pyi +++ b/third_party/2and3/click/types.pyi @@ -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: ...