Show More
@@ -1141,16 +1141,16 b' class Completer(Configurable):' | |||||
1141 | """ |
|
1141 | """ | |
1142 | return self._attr_matches(text)[0] |
|
1142 | return self._attr_matches(text)[0] | |
1143 |
|
1143 | |||
1144 | def _attr_matches(self, text, include_prefix=True): |
|
1144 | def _attr_matches(self, text, include_prefix=True) -> Tuple[Sequence[str], str]: | |
1145 | m2 = re.match(r"(.+)\.(\w*)$", self.line_buffer) |
|
1145 | m2 = re.match(r"(.+)\.(\w*)$", self.line_buffer) | |
1146 | if not m2: |
|
1146 | if not m2: | |
1147 | return [] |
|
1147 | return [], "" | |
1148 | expr, attr = m2.group(1, 2) |
|
1148 | expr, attr = m2.group(1, 2) | |
1149 |
|
1149 | |||
1150 | obj = self._evaluate_expr(expr) |
|
1150 | obj = self._evaluate_expr(expr) | |
1151 |
|
1151 | |||
1152 | if obj is not_found: |
|
1152 | if obj is not_found: | |
1153 | return [] |
|
1153 | return [], "" | |
1154 |
|
1154 | |||
1155 | if self.limit_to__all__ and hasattr(obj, '__all__'): |
|
1155 | if self.limit_to__all__ and hasattr(obj, '__all__'): | |
1156 | words = get__all__entries(obj) |
|
1156 | words = get__all__entries(obj) |
General Comments 0
You need to be logged in to leave comments.
Login now