Skip to content

Use uppercase enum keys. #49

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

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

jessemyers-lettuce
Copy link
Contributor

In one of our examples, we have an enumeration for US state abbreviations, which includes Indiana. This results in an entry of the form:

    in = "IN",

which fails to compile because in is a reserved word.

The easiest fix I can imagine is to use upper case.

In one of our examples, we have an enumeration for US state abbreviations,
which includes Indiana. This results in an entry of the form:

```py
    in = "IN",
```

which fails to compile because `in` is a reserved word.

The easiest fix I can imagine is to use upper case.
@MarcoMuellner
Copy link
Owner

Good idea! Thank you for the contribution.

@MarcoMuellner MarcoMuellner merged commit 1a18cef into MarcoMuellner:main Sep 16, 2023
@jessemyers-lettuce jessemyers-lettuce deleted the uppercase-enums branch September 16, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants