Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Analysis/Ast/Impl/Analyzer/PythonInterpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ private async Task LoadBuiltinTypesAsync(string root, IServiceManager sm, Cancel
_moduleResolution = new MainModuleResolution(root, sm);
await _moduleResolution.InitializeAsync(cancellationToken);

_stubResolution = new TypeshedResolution(sm);
await _stubResolution.InitializeAsync(cancellationToken);

var builtinModule = _moduleResolution.BuiltinsModule;
lock (_lock) {
_builtinTypes[BuiltinTypeId.NoneType]
Expand All @@ -57,9 +60,6 @@ private async Task LoadBuiltinTypesAsync(string root, IServiceManager sm, Cancel
= UnknownType = new PythonType("Unknown", builtinModule, string.Empty, LocationInfo.Empty);
}
await _moduleResolution.LoadBuiltinTypesAsync(cancellationToken);

_stubResolution = new TypeshedResolution(sm);
await _stubResolution.InitializeAsync(cancellationToken);
}

public static async Task<IPythonInterpreter> CreateAsync(InterpreterConfiguration configuration, string root, IServiceManager sm, CancellationToken cancellationToken = default) {
Expand Down