from typing import Union


a<warning descr="Python version 2.7 does not support variable annotations">: <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | Union[str, bool]</warning></warning> = 42