Skip to content

Commit

Permalink
Fixes RH-85354
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Jan 1, 2025
1 parent 0c08d09 commit 4435037
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/McNeel.PythonEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,12 @@ public bool TryGetMembers(object pyObject, out IEnumerable<Tuple<string, string>
continue;

using var attr = pyObj.GetAttr(key);

// ensure generic type names are not included. Their non-generic
// name is already included e.g. 'Stack' and 'Stack`1' (RH-85354)
if (key.Contains("`"))
continue;

all.Add(new PyCompletion(key, GetObjectKind(attr)));
}
}
Expand Down

0 comments on commit 4435037

Please sign in to comment.