Python typing hints employ the Optional operator, a shorthand notation for Union[..., None]. While some parts of this project use this shorthand notation, others opt to use Union[..., None]. This PR standardizes the typing hints to use Optional whenever None is the default argument. This enhances the readability of the code in the repository.
Python typing hints employ the
Optional
operator, a shorthand notation forUnion[..., None]
. While some parts of this project use this shorthand notation, others opt to useUnion[..., None]
. This PR standardizes the typing hints to useOptional
wheneverNone
is the default argument. This enhances the readability of the code in the repository.