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

Function error_type

crates/stdlib/src/termios.rs:273–279  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

271
272 #[pyattr(name = "error", once)]
273 fn error_type(vm: &VirtualMachine) -> PyTypeRef {
274 vm.ctx.new_exception_type(
275 "termios",
276 "error",
277 Some(vec![vm.ctx.exceptions.os_error.to_owned()]),
278 )
279 }
280}

Callers 1

termios_errorFunction · 0.70

Calls 2

new_exception_typeMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected