Skip to content

Commit 1ef5223

Browse files
author
Mikhail Arkhipov
committed
Revert "Limit submodule search (microsoft#1953)"
This reverts commit 4e9ef9b.
1 parent 4e9ef9b commit 1ef5223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analysis/Ast/Impl/Modules/PythonModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public virtual string Documentation {
152152

153153
public virtual IMember GetMember(string name) {
154154
var v = GlobalScope.Variables[name]?.Value;
155-
if (v == null && (ModuleType == ModuleType.Package || ModuleType == ModuleType.User || ModuleType == ModuleType.Library)) {
155+
if (v == null) {
156156
var mres = Interpreter.ModuleResolution;
157157
var result = mres.CurrentPathResolver.FindImports(FilePath, Enumerable.Repeat(name, 1), 0, false);
158158
if (result is ModuleImport moduleImports) {

0 commit comments

Comments
 (0)