When using mypy and pyre-check to check type errors of the following code, neither produces an error:
from typing import List, Union
tlist: List[Union[str, float]] = [False, int(12)]
Just curious why is that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…