Merge pull request #7398 from tk0miya/refactor_type_annotation

refactor: Update type annotation for autosummary
This commit is contained in:
Takeshi KOMIYA 2020-03-30 01:40:06 +09:00 committed by GitHub
commit 01a6dfdc5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,7 +326,7 @@ def find_autosummary_in_files(filenames: List[str]) -> List[AutosummaryEntry]:
return documented return documented
def find_autosummary_in_docstring(name: str, module: Any = None, filename: str = None def find_autosummary_in_docstring(name: str, module: str = None, filename: str = None
) -> List[AutosummaryEntry]: ) -> List[AutosummaryEntry]:
"""Find out what items are documented in the given object's docstring. """Find out what items are documented in the given object's docstring.
@ -346,7 +346,7 @@ def find_autosummary_in_docstring(name: str, module: Any = None, filename: str =
return [] return []
def find_autosummary_in_lines(lines: List[str], module: Any = None, filename: str = None def find_autosummary_in_lines(lines: List[str], module: str = None, filename: str = None
) -> List[AutosummaryEntry]: ) -> List[AutosummaryEntry]:
"""Find out what items appear in autosummary:: directives in the """Find out what items appear in autosummary:: directives in the
given lines. given lines.