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
rename_all
Hello!
I'll try to take some time to fix this, but I open an issue in case I don't make time for it!
Given the following enum definition :
#[gen_stub_pyclass_enum] #[pyclass(ord, eq, frozen, hash, str, rename_all = "UPPERCASE")] #[derive(Hash, PartialOrd, Ord, PartialEq, Eq)] pub enum State { Open, Closed, Unknown, }
The output stub looks like this :
class State(Enum): Open = auto() Closed = auto() Unknown = auto()
However, because of the rename_all = "UPPERCASE" the actual enum variants are OPEN, CLOSED and UNKNOWN.
rename_all = "UPPERCASE"
OPEN
CLOSED
UNKNOWN
The text was updated successfully, but these errors were encountered:
State
No branches or pull requests
Hello!
I'll try to take some time to fix this, but I open an issue in case I don't make time for it!
Given the following enum definition :
The output stub looks like this :
However, because of the
rename_all = "UPPERCASE"
the actual enum variants areOPEN
,CLOSED
andUNKNOWN
.The text was updated successfully, but these errors were encountered: