| 370 | __slots__ = ['start', 'end', 'text', 'type', 'signature', '_origin'] |
| 371 | |
| 372 | def __init__(self, start: int, end: int, text: str, *, type: str=None, _origin='', signature='') -> None: |
| 373 | warnings.warn("``Completion`` is a provisional API (as of IPython 6.0). " |
| 374 | "It may change without warnings. " |
| 375 | "Use in corresponding context manager.", |
| 376 | category=ProvisionalCompleterWarning, stacklevel=2) |
| 377 | |
| 378 | self.start = start |
| 379 | self.end = end |
| 380 | self.text = text |
| 381 | self.type = type |
| 382 | self.signature = signature |
| 383 | self._origin = _origin |
| 384 | |
| 385 | def __repr__(self): |
| 386 | return '<Completion start=%s end=%s text=%r type=%r, signature=%r,>' % \ |