from typing import Union Foo = list[Union['Foo', int]]