from typing import List x = [1] print(isinstance(x, (List[int],)))