add isatty() method in BytesIO (#7243)

This commit is contained in:
Jiseok CHOI authored and GitHub committed 2026-02-28 15:55:12 +00:00
1 parent a4a9b29687
commit 2833cd8896
1 file changed
+9
+9
View File
@@ -4768,6 +4768,15 @@ mod _io {
Ok(())
}
#[pymethod]
fn isatty(&self, vm: &VirtualMachine) -> PyResult<bool> {
if self.closed() {
return Err(io_closed_error(vm));
}
Ok(false)
}
}
#[pyclass]