Python 3.10 – Simplifies Unions in Type Annotations
Python 3.10 has several new typing features. They are given in detail here: PEP 604, Allow writing union types as X | Y PEP 613, Explicit Type Aliases PEP 612, Parameter Specification Variables The focus of this tutorial is to talk about PEP 604, which makes writing union types easier when adding type annotation (AKA: […]
Python 3.10 – Simplifies Unions in Type Annotations Read More »