[ruff] Fix false positive on global keyword (RUF052) (#15235)

This commit is contained in:
Garrett Reynolds 2025-01-14 07:36:40 +00:00 committed by GitHub
parent a2dc8c93ef
commit dc491e8ade
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 672 additions and 654 deletions

View file

@ -1505,7 +1505,7 @@ impl<'a> SemanticModel<'a> {
kind: BindingKind::Assignment,
range: *range,
references: Vec::new(),
scope: self.scope_id,
scope: ScopeId::global(),
source: self.node_id,
context: self.execution_context(),
exceptions: self.exceptions(),