Commit ed41f9a Bartosz Sławecki
authored
1 parent 8baa750 commit ed41f9a Copy full SHA for ed41f9a
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def get_stub_file(
105
105
106
106
def get_stub_ast (
107
107
module_name : str , * , search_context : Optional [SearchContext ] = None
108
- ) -> Optional [ast .AST ]:
108
+ ) -> Optional [ast .Module ]:
109
109
"""Return the AST for the stub for the given module name."""
110
110
path = get_stub_file (module_name , search_context = search_context )
111
111
if path is None :
@@ -366,7 +366,7 @@ def find_typeshed() -> Path:
366
366
return importlib_resources .files ("typeshed_client" ) / "typeshed"
367
367
368
368
369
- def parse_stub_file (path : Path ) -> ast .AST :
369
+ def parse_stub_file (path : Path ) -> ast .Module :
370
370
text = path .read_text ()
371
371
return ast .parse (text , filename = str (path ))
372
372
You can’t perform that action at this time.
0 commit comments