Skip to content
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

Use union syntax for type hints #113

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

sfc-gh-cnivera
Copy link
Collaborator

I had added a few type hints using | (e.g. str | bool), but didn't realize this only works for Python >= 3.10. Users that were using 3.9 (which is allowed by our dependency manager) were running into errors when using the app because the | operand was not recognized.

Changing the app to use Union instead of | for compatibility.

@sfc-gh-cnivera sfc-gh-cnivera merged commit b605f39 into main Jul 30, 2024
3 checks passed
@sfc-gh-cnivera sfc-gh-cnivera deleted the cnivera/union-type-hints branch July 30, 2024 18:06
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