Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jul 26, 2023
1 parent 39fda7d commit 1f06f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/polars/utils/various.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def normalise_filepath(path: str | Path, check_not_directory: bool = True) -> st
path = os.path.expanduser(path) # noqa: PTH111
if (
check_not_directory
and os.path.exists(path)
and os.path.isdir(path) # noqa: PTH110 PTH112
and os.path.exists(path) # noqa: PTH110
and os.path.isdir(path) # noqa: PTH112
):
raise IsADirectoryError(f"Expected a file path; {path!r} is a directory")
return path
Expand Down

0 comments on commit 1f06f2a

Please sign in to comment.