We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1fb196 commit 9f7c299Copy full SHA for 9f7c299
1 file changed
vm/src/stdlib/operator.rs
@@ -225,7 +225,7 @@ mod _operator {
225
.map(|v| {
226
if !v.fast_isinstance(vm.ctx.types.int_type) {
227
return Err(vm.new_type_error(format!(
228
- "'{}' type cannot be interpreted as an integer",
+ "'{}' object cannot be interpreted as an integer",
229
v.class().name()
230
)));
231
}
@@ -253,9 +253,10 @@ mod _operator {
253
if !a.class().has_attr(identifier!(vm, __getitem__))
254
|| a.fast_isinstance(vm.ctx.types.dict_type)
255
{
256
- return Err(
257
- vm.new_type_error(format!("{} object can't be concatenated", a.class().name()))
258
- );
+ return Err(vm.new_type_error(format!(
+ "'{}' object can't be concatenated",
+ a.class().name()
259
+ )));
260
261
vm._iadd(&a, &b)
262
0 commit comments