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

Class _FakeJediCompletion

IPython/core/completer.py:325–344  ·  view source on GitHub ↗

This is a workaround to communicate to the UI that Jedi has crashed and to report a bug. Will be used only id :any:`IPCompleter.debug` is set to true. Added in IPython 6.0 so should likely be removed for 7.0

Source from the content-addressed store, hash-verified

323
324
325class _FakeJediCompletion:
326 """
327 This is a workaround to communicate to the UI that Jedi has crashed and to
328 report a bug. Will be used only id :any:`IPCompleter.debug` is set to true.
329
330 Added in IPython 6.0 so should likely be removed for 7.0
331
332 """
333
334 def __init__(self, name):
335
336 self.name = name
337 self.complete = name
338 self.type = 'crashed'
339 self.name_with_symbols = name
340 self.signature = ''
341 self._origin = 'fake'
342
343 def __repr__(self):
344 return '<Fake completion object jedi has crashed>'
345
346
347class Completion:

Callers 1

_jedi_matchesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected