I tried it on this bit of code, but it didn't detect a type mismatch. Is it supposed to?
def foo(n: int):
pass
def bar():
foo("123")
It does detect this mismatch: def foo(n: int):
pass
foo("123")