Skip to content

Commit 4e3d934

Browse files
committed
Handle typeshed_path being None
1 parent efdb728 commit 4e3d934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def main() -> None:
751751
sarif_runs: List[dict] = []
752752

753753
target = Path(args.target).resolve().absolute()
754-
typeshed_path = Path(args.typeshed_path).resolve().absolute()
754+
typeshed_path = Path(args.typeshed_path).resolve().absolute() if args.typeshed_path is not None else None
755755

756756
for linter in args.linter:
757757
LOG.debug("Running %s", linter)

0 commit comments

Comments
 (0)