(self)
| 215 | `update`ed to set what matches will be iterated over.""" |
| 216 | |
| 217 | def __init__(self) -> None: |
| 218 | # word being replaced in the original line of text |
| 219 | self.current_word = "" |
| 220 | # possible replacements for current_word |
| 221 | self.matches: list[str] = [] |
| 222 | # which word is currently replacing the current word |
| 223 | self.index = -1 |
| 224 | # cursor position in the original line |
| 225 | self.orig_cursor_offset = -1 |
| 226 | # original line (before match replacements) |
| 227 | self.orig_line = "" |
| 228 | # class describing the current type of completion |
| 229 | self.completer: autocomplete.BaseCompletionType | None = None |
| 230 | self.start: int | None = None |
| 231 | self.end: int | None = None |
| 232 | |
| 233 | def __nonzero__(self) -> bool: |
| 234 | """MatchesIterator is False when word hasn't been replaced yet""" |
nothing calls this directly
no outgoing calls
no test coverage detected