Skip to content

Commit 718324d

Browse files
committed
Set field_name when validating call arguments
1 parent b5cc2e9 commit 718324d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/validators/arguments.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ impl Validator for ArgumentsValidator {
229229
}
230230
}
231231

232+
let state =
233+
&mut state.rebind_extra(|extra| extra.field_name = Some(PyString::new(py, parameter.name.as_str())));
234+
232235
match (pos_value, kw_value) {
233236
(Some(_), Some((_, kw_value))) => {
234237
errors.push(ValLineError::new_with_loc(

0 commit comments

Comments
 (0)