Scalar type checking does not work in Python (v 3.8.6).
def test(x: int) -> int:
print(type(x))
return x
a = test('a')
It doesn't matter at all that there is no int as an input parameter. It also does not indicate that int is not an output parameter.
Output:
<class 'str'>
I would expect ValueError!