As far as I can gather, the following two types are equivalent in Python:
Optional[Union[A, B]]
Union[A, B, None]
Is there a defined convention for which one to choose, such as a clause in PEP?
As far as I can gather, the following two types are equivalent in Python:
Optional[Union[A, B]]
Union[A, B, None]
Is there a defined convention for which one to choose, such as a clause in PEP?