mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-13 16:15:16 +00:00
Fix is_local
This commit is contained in:
parent
5f4309c62c
commit
572bbda60b
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ impl Symbol {
|
|||
}
|
||||
|
||||
pub fn is_local(&self) -> bool {
|
||||
self.scope == SymbolScope::Local
|
||||
matches!(self.scope, SymbolScope::Local | SymbolScope::Cell)
|
||||
}
|
||||
|
||||
pub fn is_bound(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue