Skip to content

Commit

Permalink
Fix pyright errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1nku committed Nov 1, 2024
1 parent 242390a commit c700436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrappers/python/tests/test_doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import mypy.api

def find_mypy_config() -> Path:
solrstice_path = Path(solrstice.__path__[0])
solrstice_path = Path(solrstice.__path__[0]) # type: ignore
solrstice_parent = solrstice_path.parent
if (solrstice_parent / "mypy.ini").exists():
return solrstice_parent / "mypy.ini"
raise FileNotFoundError("Could not find mypy.ini")

def get_doctests_from_solrstice() -> Dict[str, List[doctest.Example]]:
to_parse = [Path(solrstice.__path__[0])]
to_parse = [Path(solrstice.__path__[0])] # type: ignore
doctest_parser = doctest.DocTestParser()
doctest_examples = {}
while to_parse:
Expand Down

0 comments on commit c700436

Please sign in to comment.