MCPcopy Index your code
hub / github.com/ipython/ipython / _FakeJediCompletion

Class _FakeJediCompletion

IPython/core/completer.py:452–472  ·  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

450
451
452class _FakeJediCompletion:
453 """
454 This is a workaround to communicate to the UI that Jedi has crashed and to
455 report a bug. Will be used only id :any:`IPCompleter.debug` is set to true.
456
457 Added in IPython 6.0 so should likely be removed for 7.0
458
459 """
460
461 def __init__(self, name):
462
463 self.name = name
464 self.complete = name
465 self.type = 'crashed'
466 self.name_with_symbols = name
467 self.signature = ""
468 self._origin = "fake"
469 self.text = "crashed"
470
471 def __repr__(self):
472 return '<Fake completion object jedi has crashed>'
473
474
475_JediCompletionLike = Union["jedi.api.Completion", _FakeJediCompletion]

Callers 1

_jedi_matchesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…