mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Use final numeric character for warning error offsets (#9305)
Assisted-by: OpenAI: GPT-6.1
This commit is contained in:
1 parent
36f8e8937a
commit
94f92e4ab8
1 file changed
+2
-6
@@ -2091,19 +2091,15 @@ mod escape_warnings {
|
||||
}
|
||||
}
|
||||
ParserWarning::Numeric {
|
||||
offset,
|
||||
last_offset,
|
||||
message,
|
||||
..
|
||||
} => {
|
||||
warn_syntax_at_offset(
|
||||
source,
|
||||
filename,
|
||||
module,
|
||||
if interactive.is_some() {
|
||||
last_offset
|
||||
} else {
|
||||
offset
|
||||
},
|
||||
last_offset,
|
||||
message.clone(),
|
||||
self,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user