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

Method as_number

crates/vm/src/stdlib/typevar.rs:301–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299
300 impl AsNumber for TypeVar {
301 fn as_number() -> &'static PyNumberMethods {
302 static AS_NUMBER: PyNumberMethods = PyNumberMethods {
303 or: Some(|a, b, vm| {
304 let args = PyTuple::new_ref(vec![a.to_owned(), b.to_owned()], &vm.ctx);
305 make_union(&args, vm)
306 }),
307 ..PyNumberMethods::NOT_IMPLEMENTED
308 };
309 &AS_NUMBER
310 }
311 }
312
313 impl Constructor for TypeVar {

Callers

nothing calls this directly

Calls 2

make_unionFunction · 0.85
SomeClass · 0.50

Tested by

no test coverage detected