Skip to content

Commit bab00dd

Browse files
Apply suggestions from code review
Co-authored-by: Marc Mueller <[email protected]>
1 parent 6b6eb00 commit bab00dd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pylint/testutils/primer.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,19 @@ def __init__(
3636
commit: Optional[str] = None,
3737
pylint_additional_args: Optional[List[str]] = None,
3838
pylintrc_relpath: Optional[str] = None,
39-
):
39+
) -> None:
4040
self.url = url
4141
self.branch = branch
4242
self.directories = directories
4343
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 []
4745
self.pylintrc_relpath = pylintrc_relpath
4846

4947
@property
50-
def pylintrc(self) -> Optional[str]:
48+
def pylintrc(self) -> Optional[Path]:
5149
if self.pylintrc_relpath is None:
5250
return None
53-
return f"{self.clone_directory}/{self.pylintrc_relpath}"
51+
return self.clone_directory / self.pylintrc_relpath
5452

5553
@property
5654
def clone_directory(self) -> Path:

0 commit comments

Comments
 (0)