On python versions below 3.10 the clumsy Union from typing is to be used in type annotations.
TypeError: unsupported operand type(s) for |: 'type' and 'type'
Fixed in version 2024.1.8