Let consider the following code :
import inspect def fun(...): # some arguments ... pass
How to check that the argument a is in the signature of fun ?
a
fun
"a" in inspect.parameters(fun)
"a" in inspect.signature(fun)
"a" in inspect.signature(fun).parameters
"a" in inspect.parameters(fun).signature