mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Implement F405 (#243)
This commit is contained in:
parent
71d9b2ac5f
commit
d827e6e36a
7 changed files with 185 additions and 62 deletions
|
@ -25,6 +25,7 @@ pub enum ScopeKind {
|
|||
pub struct Scope {
|
||||
pub id: usize,
|
||||
pub kind: ScopeKind,
|
||||
pub import_starred: bool,
|
||||
pub values: BTreeMap<String, Binding>,
|
||||
}
|
||||
|
||||
|
@ -33,6 +34,7 @@ impl Scope {
|
|||
Scope {
|
||||
id: id(),
|
||||
kind,
|
||||
import_starred: false,
|
||||
values: BTreeMap::new(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue