In the example below I'm passing float value to a function accepting and int argument (using type hints). Looks like the value read into the function arg is a float nonetheless (was expecting int(11.2) * 10 = 110 instead of 112)
Why is this the case?
def f(n:int):
return n*10
l = [11.2, 2.2, 3.3, 4.4]
mfunc = map(f,l)
print(list(mfunc))
Result: [112.0, 22.0, 33.0, 44.0]
** Process exited - Return Code: 0 ** Press Enter to exit terminal
return int(n) * 10