Python 3.10の新機能(その4) | 演算子によるユニオン型の指定 - python.jp

型ヒント関連では、次の機能がPython 3.10で追加されました。 PEP 604 Allow writing union types as X | Y PEP 612 Parameter Specification Variables PEP 613 Explicit Type Aliases