MCPcopy Index your code
hub / github.com/RustPython/RustPython / check_kwargs_empty

Method check_kwargs_empty

crates/vm/src/function/argument.rs:294–299  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

292 }
293
294 pub fn check_kwargs_empty(&self, vm: &VirtualMachine) -> Option<PyBaseExceptionRef> {
295 self.kwargs
296 .keys()
297 .next()
298 .map(|k| vm.new_type_error(format!("Unexpected keyword argument {k}")))
299 }
300}
301
302/// An error encountered while binding arguments to the parameters of a Python

Callers 2

bindMethod · 0.80
min_or_maxFunction · 0.80

Calls 3

mapMethod · 0.45
nextMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected