We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
These pymethods
#[pymethods] impl Foo { #[getter] pub fn readwrite(slf: PyRef<'_, Self>) -> String { String::new() } #[setter] pub fn set_readwrite<'py>(mut slf: PyRefMut<'py, Self>, data: &str) {} #[getter] pub fn readonly(slf: PyRef<'_, Self>) -> String { String::new() } }
should translate to
class Foo: @property def readwrite(self) -> str: ... @readwrite.setter def readwrite(self, data: str): ... @property def readonly(self) -> str: ...
Instead, they translate to static class attributes without getter/setter logic.
The text was updated successfully, but these errors were encountered:
Also would mean you could generate docstrings for them, right now they don't seem to go anywhere.
Sorry, something went wrong.
No branches or pull requests
These pymethods
should translate to
Instead, they translate to static class attributes without getter/setter logic.
The text was updated successfully, but these errors were encountered: