You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Cargo.toml
[package]
name = "example"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "example"crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.27.1", features = [ "experimental-inspect" ] }
The compilation command is:
maturin develop
However, the generated files only contain .so and __init__.py, but no .pyi files. I also have read the issues about stub files generation, e.g., #5137, #3977, but I am not familiar with .pyi, "introspection fragments" and many other conceptions. Does pyo3 now only support generating introspection fragments and not generating .pyi files?
I noticed there was a related discussion #2330, but it's quite outdated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I followed the tutorial in https://pyo3.rs/v0.27.1/type-stub.html. Here is my code:
The compilation command is:
However, the generated files only contain
.soand__init__.py, but no.pyifiles. I also have read the issues about stub files generation, e.g., #5137, #3977, but I am not familiar with.pyi, "introspection fragments" and many other conceptions. Does pyo3 now only support generating introspection fragments and not generating .pyi files?I noticed there was a related discussion #2330, but it's quite outdated.
Beta Was this translation helpful? Give feedback.
All reactions