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
| 323 | |
| 324 | |
| 325 | class _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 | |
| 347 | class Completion: |