-
Notifications
You must be signed in to change notification settings - Fork 41
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
default vales for enums need to be strings #45
Comments
There are actually two cases, one where the default is for a defined type, and one for an inline enum.
I can fix the latter, but not the former.
How to resolve a defined type to a single basic type? |
I think you may be looking for |
I had some trouble making resolve_type_decl work. It turns out it doesn't unwrap objects that are tagged. I was able to work around this by manually unwrapping the tag (with .type_decl.type_decl), but it's not clear to me what the right way to do this is.
|
Hmm. It's not clear to me why you end up in But your patch as-is will definitely break things for non-tagged types, I don't think any other sema-types have two levels of |
Using this module definition:
the output isn't valid python:
The default values for enums need to be quoted.
The text was updated successfully, but these errors were encountered: