Skip to content

Commit

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

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

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -39,7 +40,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 = pathspec.PathSpec.from_lines(
self.gitignore_spec: Optional[PathSpec] = pathspec.PathSpec.from_lines(
"gitwildmatch", ignore_patterns
)
except FileNotFoundError:
Expand Down

0 comments on commit eb33dfa

Please sign in to comment.