Check for functions and not callables
Merge pull request #15659 from s0undt3ch/features/function-type

Check for functions and not callables