If you mean during a certain function call, the function itself can get the types of its arguments by calling type for each of them (and, of course, it will find out what type it will return).
If you mean from outside the function, no: the function can be called with arguments of any type - some of these calls will cause errors, but there is no way to know a priori which ones they will be.
Parameters can optionally be styled in Python 3, and one of the possible ways to use this styling is to express about the types of parameters (and / or other restrictions on them), but the language and the standard library do not give any indications of how such decoration can be used . You could also adopt the standard that such restrictions are expressed in a structured way in the docstring function, which has the advantage that it applies to any version of Python.
source share