Now, somewhere else in your code, you have something like:
x = readline()
y = readline()
That won't compile because readline returns string and add expects integers. Somewhere between readline and add you'll have to convert the strings to integers, and that piece of code (not the add function) is the one that has to be concerned with things like the user entering "abc" where a number is expected.
As far as the add function itself is concerned, it will always be invoked with two integers; the burden of proof is on the caller.