Skip to content

Commit

Permalink
Extra import removed
Browse files Browse the repository at this point in the history
Signed-off-by: Jitendra Gundaniya <[email protected]>
  • Loading branch information
jitu5 committed Oct 25, 2024
1 parent eb33dfa commit 2785250
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions package/kedro_viz/autoreload_file_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pathlib import Path
from typing import Optional, Set

import pathspec
from pathspec import PathSpec
from watchfiles import Change, DefaultFilter

Expand Down Expand Up @@ -40,7 +39,7 @@ def __init__(self, base_path: Optional[Path] = None):
try:
with open(gitignore_path, "r", encoding="utf-8") as gitignore_file:
ignore_patterns = gitignore_file.read().splitlines()
self.gitignore_spec: Optional[PathSpec] = pathspec.PathSpec.from_lines(
self.gitignore_spec: Optional[PathSpec] = PathSpec.from_lines(
"gitwildmatch", ignore_patterns
)
except FileNotFoundError:
Expand Down

0 comments on commit 2785250

Please sign in to comment.