mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
fix typo, fix bytesinner.add now return Vec[u8]
This commit is contained in:
@@ -134,7 +134,7 @@ impl PyBytesRef {
|
||||
#[pymethod(name = "__add__")]
|
||||
fn add(self, other: PyObjectRef, vm: &VirtualMachine) -> PyResult {
|
||||
match_class!(other,
|
||||
bytes @ PyBytes => self.inner.add(&bytes.inner, vm),
|
||||
bytes @ PyBytes => Ok(vm.ctx.new_bytes(self.inner.add(&bytes.inner, vm))),
|
||||
_ => Ok(vm.ctx.not_implemented()))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user