-
Notifications
You must be signed in to change notification settings - Fork 763
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
text_signature
not available for #pyclass
#4586
Comments
|
Ah, thanks for flagging - docs need fixing! |
@davidhewitt I tried the change you suggested, but for some reason, it's not propagatd to python. #[pymethods]
impl Signal {
/// This is a signal that does xyz
#[new]
#[pyo3(text_signature = "(index)")]
fn new(index: i32) -> Self {
Signal { index }
} And in python, the signature for ($type, *args, **kwargs) |
The text signature ends up just below the class header, rather than on the
To put it on |
Bug Description
I expect to be able to add the
text_signature
to thepyclass
, but it's failing.Running pyo3 version 0.22.3.
Steps to Reproduce
Backtrace
The text was updated successfully, but these errors were encountered: