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 d1909d3 commit bde2553Copy full SHA for bde2553
src/random.rs
@@ -17,6 +17,8 @@ use crate::npyffi::npy_bitgen;
17
#[repr(transparent)]
18
pub struct PyBitGenerator(PyAny);
19
20
+impl DerefToPyAny for PyBitGenerator {}
21
+
22
unsafe impl PyTypeInfo for PyBitGenerator {
23
const NAME: &'static str = "PyBitGenerator";
24
const MODULE: Option<&'static str> = Some("numpy.random");
@@ -38,8 +40,6 @@ unsafe impl PyTypeInfo for PyBitGenerator {
38
40
}
39
41
42
-impl DerefToPyAny for PyBitGenerator {}
-
43
/// Methods for [`BitGenerator`]
44
pub trait BitGeneratorMethods<'py> {
45
/// Returns a new [`BitGen`]
0 commit comments