mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Adjust line numbers when reporting rules in f-strings (#244)
This commit is contained in:
parent
1e171ce0e8
commit
65d29d9734
5 changed files with 151 additions and 87 deletions
|
@ -65,3 +65,7 @@ pub struct Binding {
|
|||
/// last used.
|
||||
pub used: Option<(usize, Location)>,
|
||||
}
|
||||
|
||||
pub trait CheckLocator {
|
||||
fn locate_check(&self, default: Location) -> Location;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue