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
#[pyclass] #[derive(Debug, Clone)] pub enum ConType { Initiator, Acceptor, }
equivalent
class ConType(enum.Enum): Initiator = enum.auto() Acceptor = enum.auto()
however when defined in python can be used as:
con_type = ConType.Initiator print(f'{con_type.name}, {con_type.value}')
but if only defined using pyo3 rust calling name and value attributes fail
name
value
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #2887
That issue has a summary of what we think needs to happen to improve this, PR welcome to help!
Sorry, something went wrong.
No branches or pull requests
equivalent
however when defined in python can be used as:
but if only defined using pyo3 rust calling
name
andvalue
attributes failThe text was updated successfully, but these errors were encountered: