That's quite intentional. If you are passing the wrong type of value to a function then your code should crash. The code will also crash if I pass a string to a function that expects an integer. Code ...
Not to mention python tends to prefer duck typing a lot and most of the examples are counter to that.