We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a92861a commit 6dbb6dcCopy full SHA for 6dbb6dc
src/random.rs
@@ -76,7 +76,7 @@ unsafe impl PyTypeInfo for PyBitGenerator {
76
const MODULE: Option<&'static str> = Some("numpy.random");
77
78
fn type_object_raw<'py>(py: Python<'py>) -> *mut ffi::PyTypeObject {
79
- const CLS: GILOnceCell<Py<PyType>> = GILOnceCell::new();
+ static CLS: GILOnceCell<Py<PyType>> = GILOnceCell::new();
80
let cls = CLS
81
.get_or_try_init::<_, PyErr>(py, || {
82
Ok(py
0 commit comments