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

Feature/Use None instead of Optional #831

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

mgovers
Copy link
Member

@mgovers mgovers commented Nov 14, 2024

This homogenizes type hinting (using newer paradigm of using A | None instead of Optional[A].

This especially makes sense in cases where it looks like A | B | C | None v.s. Optional[A | B | C]

Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@mgovers mgovers self-assigned this Nov 14, 2024
@mgovers mgovers added the improvement Improvement on internal implementation label Nov 14, 2024
@mgovers mgovers added this pull request to the merge queue Nov 14, 2024
Merged via the queue into main with commit e31e05c Nov 14, 2024
27 of 28 checks passed
@mgovers mgovers deleted the feature/python-optional-as-none-typehint branch November 14, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement on internal implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants