We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3bc65bd + 71968b3 commit cc90bc0Copy full SHA for cc90bc0
vm/src/stdlib/itertools.rs
@@ -197,7 +197,7 @@ mod decl {
197
let start = start.into_option().unwrap_or_else(|| vm.new_pyobj(0));
198
let step = step.into_option().unwrap_or_else(|| vm.new_pyobj(1));
199
if !PyNumber::check(&start, vm) || !PyNumber::check(&step, vm) {
200
- return Err(vm.new_value_error("a number is require".to_owned()));
+ return Err(vm.new_type_error("a number is required".to_owned()));
201
}
202
203
PyItertoolsCount {
0 commit comments