MCPcopy Create free account
hub / github.com/ipython/ipython / complete_object

Function complete_object

IPython/utils/generics.py:16–30  ·  view source on GitHub ↗

Custom completer dispatching for python objects. Parameters ---------- obj : object The object to complete. prev_completions : list List of attributes discovered so far. This should return the list of attributes in obj. If you only wish to add to the attribu

(obj, prev_completions)

Source from the content-addressed store, hash-verified

14
15@singledispatch
16def complete_object(obj, prev_completions):
17 """Custom completer dispatching for python objects.
18
19 Parameters
20 ----------
21 obj : object
22 The object to complete.
23 prev_completions : list
24 List of attributes discovered so far.
25
26 This should return the list of attributes in obj. If you only wish to
27 add to the attributes already discovered normally, return
28 own_attrs + prev_completions.
29 """
30 raise TryNext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected