-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic when generating stub pymethods #69
Comments
This means |
However, I have implemented #[cfg_attr(feature = "python", gen_stub_pyclass_enum)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "python", pyclass(eq, eq_int))]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum TimeScale { And the previous generated .pyi file has included the |
Looks strange, will be a bug. Could you create a minimal example to reproduce this result? |
When I tried to add gen_stub_pymethods for pymethods, it panics:
thread 'main' panicked at /home/yunboni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-stub-gen-0.6.0/src/generate/stub_info.rs:136:9: internal error: entered unreachable code: Missing struct_id = TypeId(0xf92611a13ccd508e032c0d7de1b7a2cb)
The full backtrace
The code is:
The text was updated successfully, but these errors were encountered: