()
| 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 { |
nothing calls this directly
no test coverage detected