23.4.1
- Introduce Y055: Unions of the form
type[X] | type[Y]can be simplified totype[X | Y]. Similarly,Union[type[X], type[Y]]can be simplified totype[Union[X, Y]]. Contributed by tomasr8.
type[X] | type[Y] can be simplified to type[X | Y]. Similarly, Union[type[X], type[Y]] can be simplified to type[Union[X, Y]]. Contributed by tomasr8.