(typ: PyTypeRef)
| 85 | Self::static_cell().get().unwrap_or_else(|| fail()) |
| 86 | } |
| 87 | fn init_manually(typ: PyTypeRef) -> &'static Py<PyType> { |
| 88 | let cell = Self::static_cell(); |
| 89 | cell.set(typ) |
| 90 | .unwrap_or_else(|_| panic!("double initialization from init_manually")); |
| 91 | cell.get().unwrap() |
| 92 | } |
| 93 | fn init_builtin_type() -> &'static Py<PyType> |
| 94 | where |
| 95 | Self: PyClassImpl, |