import typing as t A = (t.Literal[1], t.Literal[0]) B = (t.Literal[True], t.Literal[False]) print(A, B)