File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -36,21 +36,19 @@ def __init__(
36
36
commit : Optional [str ] = None ,
37
37
pylint_additional_args : Optional [List [str ]] = None ,
38
38
pylintrc_relpath : Optional [str ] = None ,
39
- ):
39
+ ) -> None :
40
40
self .url = url
41
41
self .branch = branch
42
42
self .directories = directories
43
43
self .commit = commit
44
- if pylint_additional_args is None :
45
- pylint_additional_args = []
46
- self .pylint_additional_args = pylint_additional_args
44
+ self .pylint_additional_args = pylint_additional_args or []
47
45
self .pylintrc_relpath = pylintrc_relpath
48
46
49
47
@property
50
- def pylintrc (self ) -> Optional [str ]:
48
+ def pylintrc (self ) -> Optional [Path ]:
51
49
if self .pylintrc_relpath is None :
52
50
return None
53
- return f" { self .clone_directory } / { self .pylintrc_relpath } "
51
+ return self .clone_directory / self .pylintrc_relpath
54
52
55
53
@property
56
54
def clone_directory (self ) -> Path :
You can’t perform that action at this time.
0 commit comments