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

Function error_type

crates/stdlib/src/binascii.rs:23–29  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

21
22 #[pyattr(name = "Error", once)]
23 pub(super) fn error_type(vm: &VirtualMachine) -> PyTypeRef {
24 vm.ctx.new_exception_type(
25 "binascii",
26 "Error",
27 Some(vec![vm.ctx.exceptions.value_error.to_owned()]),
28 )
29 }
30
31 #[pyattr(name = "Incomplete", once)]
32 fn incomplete_type(vm: &VirtualMachine) -> PyTypeRef {

Callers 1

new_binascii_errorFunction · 0.70

Calls 2

new_exception_typeMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected