Fix missing feature flags in implementation of Either conversion.
This commit is contained in:
parent
eceb28bc79
commit
e2c6eb86f9
|
@ -43,9 +43,10 @@
|
||||||
//!
|
//!
|
||||||
//! [either](https://docs.rs/either/ "A library for easy idiomatic error handling and reporting in Rust applications")’s
|
//! [either](https://docs.rs/either/ "A library for easy idiomatic error handling and reporting in Rust applications")’s
|
||||||
|
|
||||||
|
#[cfg(feature = "experimental-inspect")]
|
||||||
|
use crate::inspect::types::TypeInfo;
|
||||||
use crate::{
|
use crate::{
|
||||||
exceptions::PyTypeError, inspect::types::TypeInfo, FromPyObject, IntoPy, PyAny, PyObject,
|
exceptions::PyTypeError, FromPyObject, IntoPy, PyAny, PyObject, PyResult, Python, ToPyObject,
|
||||||
PyResult, Python, ToPyObject,
|
|
||||||
};
|
};
|
||||||
use either::Either;
|
use either::Either;
|
||||||
|
|
||||||
|
@ -97,6 +98,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "experimental-inspect")]
|
||||||
fn type_input() -> TypeInfo {
|
fn type_input() -> TypeInfo {
|
||||||
TypeInfo::union_of(&[L::type_input(), R::type_input()])
|
TypeInfo::union_of(&[L::type_input(), R::type_input()])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue