(part of https://github.com/astral-sh/ruff/issues/14172) `type[A | B]` Is equivalent to an enum of `type[A]` | `type[B]`. There are not a lot of edge cases looking at the tests here: https://github.com/python/typing/blob/main/conformance/tests/specialtypes_type.py#L50
(part of #14172)
type[A | B]Is equivalent to an enum oftype[A]|type[B].There are not a lot of edge cases looking at the tests here: https://github.com/python/typing/blob/main/conformance/tests/specialtypes_type.py#L50