* **All functions and classes have a call() method, hence are callable.**
* **All functions and classes have a call() method, hence are callable.**
* **To check if object is callable use `'callable(<obj>)'`, `'isinstance(<obj>, collections.abc.Callable)'`, or `'isinstance(<obj>, typing.Callable)'`.**
* **Use `'callable(<obj>)'` or `'isinstance(<obj>, collections.abc.Callable)'` to check if object is callable.**
* **When this cheatsheet uses `'<function>'` as an argument, it means `'<callable>'`.**
* **When this cheatsheet uses `'<function>'` as an argument, it means `'<callable>'`.**
@ -998,7 +998,7 @@ Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span clas
<li><strong>File objects returned by the <ahref="#open">open()</a> function, etc.</strong></li>
<li><strong>File objects returned by the <ahref="#open">open()</a> function, etc.</strong></li>
</ul><div><h3id="callable">Callable</h3><ul>
</ul><div><h3id="callable">Callable</h3><ul>
<li><strong>All functions and classes have a call() method, hence are callable.</strong></li>
<li><strong>All functions and classes have a call() method, hence are callable.</strong></li>
<li><strong>To check if object is callable use <codeclass="python hljs"><spanclass="hljs-string">'callable(<obj>)'</span></code>,<codeclass="python hljs"><spanclass="hljs-string">'isinstance(<obj>, collections.abc.Callable)'</span></code>, or <codeclass="python hljs"><spanclass="hljs-string">'isinstance(<obj>, typing.Callable)'</span></code>.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'callable(<obj>)'</span></code> or<codeclass="python hljs"><spanclass="hljs-string">'isinstance(<obj>, collections.abc.Callable)'</span></code> to check if object is callable.</strong></li>
<li><strong>When this cheatsheet uses <codeclass="python hljs"><spanclass="hljs-string">'<function>'</span></code> as an argument, it means <codeclass="python hljs"><spanclass="hljs-string">'<callable>'</span></code>.</strong></li>
<li><strong>When this cheatsheet uses <codeclass="python hljs"><spanclass="hljs-string">'<function>'</span></code> as an argument, it means <codeclass="python hljs"><spanclass="hljs-string">'<callable>'</span></code>.</strong></li>