Replies: 1 comment 1 reply
-
This is unfortunate. I think that in this case the warning shouldn't fire, as you can only reach the setter through |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the latest pyo3 update optional arguments now produce a warning. With a function signature the warning can be suppressed. This is possible for pyfunctions, but not for setter, because for setters it is not allowed to use the signature feature.
How can I set a default value for an optional argument in a setter?
The following example fails to compile:
It should be possible to provide None as argument. How can I solve this?
Beta Was this translation helpful? Give feedback.
All reactions