Skip to content

Commit

Permalink
Fixed type-only annotations references
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Oct 5, 2024
1 parent 7083967 commit 8e30278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/split_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def validate_before_parsing(autosplit: "AutoSplit", *, show_error: bool = True):
return not error


def is_user_file(path: StrPath):
def is_user_file(path: "StrPath"):
"""Returns False for hidden files, system files and folders."""
if os.path.isdir(path) or os.path.basename(path).startswith("."):
return False
Expand All @@ -216,7 +216,7 @@ def is_user_file(path: StrPath):
return True


def __get_images_from_directory(directory: StrPath):
def __get_images_from_directory(directory: "StrPath"):
"""
Returns a list of AutoSplitImage parsed from a directory.
Hidden files, system files and folders are silently ignored.
Expand Down

0 comments on commit 8e30278

Please sign in to comment.