is_function()
Check if obj is callable (function).
Implementation
Args: obj: The object to check Returns: True if obj is callable, False otherwise
Example
is_function(lambda x: x)
Expected output: True
Source Code
def is_function(obj: Any) -> bool:
return callable(obj)