Skip to content

Commit 9720102

Browse files
committed
Actually remove DimensionalityError and TypeError from the crate API as they are never used directly.
1 parent 3173162 commit 9720102

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- The `inner`, `dot` and `einsum` functions can also return a scalar instead of a zero-dimensional array to match NumPy's types ([#285](https://github.com/PyO3/rust-numpy/pull/285))
99
- The `PyArray::resize` function supports n-dimensional contiguous arrays. ([#312](https://github.com/PyO3/rust-numpy/pull/312))
1010
- Deprecate `PyArray::from_exact_iter` after optimizing `PyArray::from_iter`. ([#292](https://github.com/PyO3/rust-numpy/pull/292))
11+
- Remove `DimensionalityError` and `TypeError` from the public API as they never used directly. ([#315](https://github.com/PyO3/rust-numpy/pull/315))
1112
- Fix returning invalid slices from `PyArray::{strides,shape}` for rank zero arrays. ([#303](https://github.com/PyO3/rust-numpy/pull/303))
1213

1314
- v0.16.2

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ pub use crate::borrow::{
6161
};
6262
pub use crate::convert::{IntoPyArray, NpyIndex, ToNpyDims, ToPyArray};
6363
pub use crate::dtype::{dtype, Complex32, Complex64, Element, PyArrayDescr};
64-
pub use crate::error::{
65-
BorrowError, DimensionalityError, FromVecError, NotContiguousError, TypeError,
66-
};
64+
pub use crate::error::{BorrowError, FromVecError, NotContiguousError};
6765
pub use crate::npyffi::{PY_ARRAY_API, PY_UFUNC_API};
6866
#[allow(deprecated)]
6967
pub use crate::npyiter::{

0 commit comments

Comments
 (0)