-
Notifications
You must be signed in to change notification settings - Fork 18
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
Enums with methods #86
base: main
Are you sure you want to change the base?
Conversation
Hello @termoshtt, Is there any progress on this ? Do you need any input from my side ? Here is an example of what the generated pyi looks like in one of my projects (for the Best regards, |
Hello @termoshtt, I've checked the workflows and addressed all of them except the one on semantic versioning. That being said, I do not believe that this change requires a major version bump, as there was a single place in the library where the Please let me know your opinion on this. N.B.: There is a similar discussion for |
Hello,
I was lacking the possibility of having methods and properties to enums, so here is a proposal that adds this functionality. Additionally, the documentation of documented members is now also present in the ".pyi" output.
Here is a summary of the few changes:
MemberInfo
andMemberDef
have adoc
and ais_property
attribute.StubInfoBuilder::add_methods
adds member properties for enums (but not for classes, the behaviour remains the same)StubInfoBuilder::add_methods
now looks forstruct_id
inmodule.enum_
in addition tomodule.class
.I would really like these changes to make it to a new release, please let me know if additional changes are required to comply with the current code base.