(&self, vm: &VirtualMachine)
| 233 | |
| 234 | #[pymethod] |
| 235 | fn __dir__(&self, vm: &VirtualMachine) -> PyResult<PyList> { |
| 236 | let dir = vm.dir(Some(self.__origin__()))?; |
| 237 | for exc in &ATTR_EXCEPTIONS { |
| 238 | if !dir.__contains__((*exc).to_pyobject(vm), vm)? { |
| 239 | dir.append((*exc).to_pyobject(vm)); |
| 240 | } |
| 241 | } |
| 242 | Ok(dir) |
| 243 | } |
| 244 | |
| 245 | #[pymethod] |
| 246 | fn __reduce__(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyTupleRef> { |
nothing calls this directly
no test coverage detected