(&self, module: &'static str, class: &'static str)
| 1753 | } |
| 1754 | |
| 1755 | pub fn try_class(&self, module: &'static str, class: &'static str) -> PyResult<PyTypeRef> { |
| 1756 | let class = self |
| 1757 | .import(module, 0)? |
| 1758 | .get_attr(class, self)? |
| 1759 | .downcast() |
| 1760 | .expect("not a class"); |
| 1761 | Ok(class) |
| 1762 | } |
| 1763 | |
| 1764 | pub fn class(&self, module: &'static str, class: &'static str) -> PyTypeRef { |
| 1765 | let module = self |
no test coverage detected