You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am just trying out mypy and have the following code in a file t.py:
def f1(x:int) -> int:
if x > 0:
return 1
Running mypy t.py --strict-optional gives no error or warning. Am I missing something ?
Also, are there some technical documentations for mypy, e.g., what type inference and checking algorithms were used ? I saw some code about solving constraints in mypy, but I am more interested in a technical document.