Skip to content
Prev Previous commit
Next Next commit
vm
  • Loading branch information
ShaharNaveh committed Jul 3, 2025
commit 5e086203e23eb17d5269fe2baf3f81057a3845f6
4 changes: 2 additions & 2 deletions vm/src/stdlib/symtable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ mod symtable {
}

#[pymethod]
fn is_global(&self) -> bool {
const fn is_global(&self) -> bool {
self.symbol.is_global() || (self.is_top_scope && self.symbol.is_bound())
}

Expand All @@ -180,7 +180,7 @@ mod symtable {
}

#[pymethod]
fn is_local(&self) -> bool {
const fn is_local(&self) -> bool {
self.symbol.is_local() || (self.is_top_scope && self.symbol.is_bound())
}

Expand Down