We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ast.Module
1 parent 8baa750 commit 149c8ebCopy full SHA for 149c8eb
typeshed_client/finder.py
@@ -105,7 +105,7 @@ def get_stub_file(
105
106
def get_stub_ast(
107
module_name: str, *, search_context: Optional[SearchContext] = None
108
-) -> Optional[ast.AST]:
+) -> Optional[ast.Module]:
109
"""Return the AST for the stub for the given module name."""
110
path = get_stub_file(module_name, search_context=search_context)
111
if path is None:
@@ -366,7 +366,7 @@ def find_typeshed() -> Path:
366
return importlib_resources.files("typeshed_client") / "typeshed"
367
368
369
-def parse_stub_file(path: Path) -> ast.AST:
+def parse_stub_file(path: Path) -> ast.Module:
370
text = path.read_text()
371
return ast.parse(text, filename=str(path))
372
0 commit comments