Skip to content

Commit efd1abf

Browse files
committed
fix: resolve mypy no-any-return error for PathSpec
1 parent 413b0e8 commit efd1abf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module = [
5353
"ruamel.yaml",
5454
"lxml",
5555
"lxml.html",
56+
"tiktoken",
5657
]
5758
ignore_missing_imports = true
5859

src/treemapper/ignore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ def get_ignore_specs(
187187
logging.debug(f"Adding output file to ignores: {output_pattern}")
188188

189189
logging.debug(f"Combined ignore patterns: {patterns}")
190-
return pathspec.PathSpec.from_lines("gitwildmatch", patterns)
190+
spec: pathspec.PathSpec = pathspec.PathSpec.from_lines("gitwildmatch", patterns)
191+
return spec
191192

192193

193194
def should_ignore(relative_path_str: str, combined_spec: pathspec.PathSpec) -> bool:

0 commit comments

Comments
 (0)