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

Env Vars: Add Support for |-syntax Optional Types #106

Merged
merged 13 commits into from
Sep 13, 2024
Merged

Conversation

ric-evans
Copy link
Member

Previous docs said that from_environment_as_dataclass() supports optional / None-union typehints. While this was true, more ways exist to define an optional type, like int | None. This PR adds that support.

@ric-evans ric-evans added bug Something isn't working enhancement New feature or request labels Sep 13, 2024
@ric-evans ric-evans self-assigned this Sep 13, 2024
@ric-evans ric-evans marked this pull request as ready for review September 13, 2024 21:55
@ric-evans ric-evans merged commit 90f7653 into main Sep 13, 2024
16 checks passed
@ric-evans ric-evans deleted the env-union-type branch September 13, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant