Skip to content

Commit 2564ca4

Browse files
committed
Fix missing feature flags in implementation of Either conversion.
1 parent be4d562 commit 2564ca4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/conversions/either.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@
4343
//!
4444
//! [either](https://docs.rs/either/ "A library for easy idiomatic error handling and reporting in Rust applications")’s
4545
46+
#[cfg(feature = "experimental-inspect")]
47+
use crate::inspect::types::TypeInfo;
4648
use crate::{
47-
exceptions::PyTypeError, inspect::types::TypeInfo, FromPyObject, IntoPy, PyAny, PyObject,
48-
PyResult, Python, ToPyObject,
49+
exceptions::PyTypeError, FromPyObject, IntoPy, PyAny, PyObject, PyResult, Python, ToPyObject,
4950
};
5051
use either::Either;
5152

@@ -97,6 +98,7 @@ where
9798
}
9899
}
99100

101+
#[cfg(feature = "experimental-inspect")]
100102
fn type_input() -> TypeInfo {
101103
TypeInfo::union_of(&[L::type_input(), R::type_input()])
102104
}

0 commit comments

Comments
 (0)