File tree 1 file changed +25
-2
lines changed
1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
2
import os
3
+ import typing as t
3
4
4
5
import click
5
6
from click .exceptions import FileError
@@ -84,8 +85,30 @@ def func(value):
84
85
85
86
86
87
class ConfigPath (click .Path ):
87
- def __init__ (self , config_dir = None , * args , ** kwargs ):
88
- super ().__init__ (* args , ** kwargs )
88
+ def __init__ (
89
+ self ,
90
+ config_dir = None ,
91
+ exists : bool = False ,
92
+ file_okay : bool = True ,
93
+ dir_okay : bool = True ,
94
+ writable : bool = False ,
95
+ readable : bool = True ,
96
+ resolve_path : bool = False ,
97
+ allow_dash : bool = False ,
98
+ path_type : t .Optional [t .Type ] = None ,
99
+ executable : bool = False ,
100
+ ):
101
+ super ().__init__ (
102
+ exists = exists ,
103
+ file_okay = file_okay ,
104
+ dir_okay = dir_okay ,
105
+ writable = writable ,
106
+ readable = readable ,
107
+ resolve_path = resolve_path ,
108
+ allow_dash = allow_dash ,
109
+ path_type = path_type ,
110
+ executable = executable ,
111
+ )
89
112
self .config_dir = config_dir
90
113
91
114
def convert (self , value , param , ctx ):
You can’t perform that action at this time.
0 commit comments