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
| 450 | |
| 451 | |
| 452 | class _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] |
no outgoing calls
no test coverage detected
searching dependent graphs…