Skip to content

Commit

Permalink
chore: remove types to support Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
zarybnicky committed Aug 1, 2023
1 parent 7c5abf4 commit 276cf33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mkdocs_subsite/subsite.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# pylint: disable=invalid-name, missing-docstring, too-few-public-methods

from __future__ import division, print_function
import fnmatch
import os.path

from mkdocs.structure.files import _sort_files, File, InclusionLevel
Expand Down Expand Up @@ -92,7 +93,7 @@ def get_files(base_dir, config, site):

return (files, {file.src_path: file for file in files})

def _filter_paths(basename: str, path: str, is_dir: bool, exclude: Iterable[str]) -> bool:
def _filter_paths(basename, path, is_dir, exclude) -> bool:
for item in exclude:
# Items ending in '/' apply only to directories.
if item.endswith('/') and not is_dir:
Expand Down

0 comments on commit 276cf33

Please sign in to comment.