We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253e269 commit eb2faccCopy full SHA for eb2facc
crates/ty_python_semantic/src/semantic_index/builder.rs
@@ -2224,7 +2224,9 @@ impl<'ast> Visitor<'ast> for SemanticIndexBuilder<'_, 'ast> {
2224
}
2225
walk_expr(self, expr);
2226
2227
- ast::Expr::Call(ast::ExprCall { func, .. }) if !self.source_type.is_stub() => {
+ ast::Expr::Call(ast::ExprCall { func, .. })
2228
+ if !self.source_type.is_stub() && self.in_function_scope() =>
2229
+ {
2230
let expression = self.add_standalone_expression(func);
2231
2232
let predicate = Predicate {
0 commit comments