Skip to content

Commit 7415e21

Browse files
committed
Fix typing in test_doctests.py
1 parent a3edb3e commit 7415e21

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_doctests.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import doctest
22
import unittest
3+
from typing import Any, List
4+
from unittest import BaseTestSuite
35

46
from locate import this_dir
57

68
repo_dir = this_dir().parent
79

810

9-
def load_tests(loader, tests, ignore):
11+
# noinspection PyUnusedLocal
12+
def load_tests(loader: Any, tests: BaseTestSuite, ignore: Any) -> BaseTestSuite:
1013
"""
1114
See https://docs.python.org/3/library/doctest.html#unittest-api
1215
"""
@@ -16,7 +19,7 @@ def load_tests(loader, tests, ignore):
1619
return tests
1720

1821

19-
def find_modules_with_doctests():
22+
def find_modules_with_doctests() -> List[str]:
2023
modules = []
2124
skip_n_parts = len(repo_dir.parts)
2225
for path in repo_dir.joinpath("mkdocstrings_handlers").rglob("*.py"):

0 commit comments

Comments
 (0)