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.
PyArrayDescr::get_type()
1 parent 8f7ebda commit 96831e4Copy full SHA for 96831e4
src/dtype.rs
@@ -101,6 +101,12 @@ impl PyArrayDescr {
101
unsafe { PyType::from_type_ptr(self.py(), dtype_type_ptr) }
102
}
103
104
+ #[doc(hidden)]
105
+ #[deprecated(note = "`get_type()` is deprecated, please use `typeobj()` instead")]
106
+ pub fn get_type(&self) -> &PyType {
107
+ self.typeobj()
108
+ }
109
+
110
/// Returns a unique number for each of the 21 different built-in
111
/// [enumerated types](https://numpy.org/doc/stable/reference/c-api/dtype.html#enumerated-types).
112
///
0 commit comments