Show More
@@ -1185,9 +1185,9 b' class IPCompleter(Completer):' | |||
|
1185 | 1185 | |
|
1186 | 1186 | return comp |
|
1187 | 1187 | |
|
1188 |
def magic_config_matches(self, |
|
|
1188 | def magic_config_matches(self, text:str) -> List[str]: | |
|
1189 | 1189 | """ Match class names and attributes for %config magic """ |
|
1190 |
texts = |
|
|
1190 | texts = text.strip().split() | |
|
1191 | 1191 | |
|
1192 | 1192 | if len(texts) > 0 and (texts[0] == 'config' or texts[0] == '%config'): |
|
1193 | 1193 | # get all configuration classes |
@@ -1220,9 +1220,9 b' class IPCompleter(Completer):' | |||
|
1220 | 1220 | if attr.startswith(texts[1]) ] |
|
1221 | 1221 | return [] |
|
1222 | 1222 | |
|
1223 |
def magic_color_matches(self, |
|
|
1223 | def magic_color_matches(self, text:str) -> List[str] : | |
|
1224 | 1224 | """ Match color schemes for %colors magic""" |
|
1225 |
texts = |
|
|
1225 | texts = text.strip().split() | |
|
1226 | 1226 | |
|
1227 | 1227 | if len(texts) > 0 and (texts[0] == 'colors' or texts[0] == '%colors'): |
|
1228 | 1228 | prefix = texts[1] if len(texts) > 1 else '' |
@@ -1896,7 +1896,7 b' class IPCompleter(Completer):' | |||
|
1896 | 1896 | if matches: |
|
1897 | 1897 | matches2 = [m[0] for m in matches] |
|
1898 | 1898 | origins = [m[1] for m in matches] |
|
1899 |
return text, matches2, origins, |
|
|
1899 | return text, matches2, origins, () | |
|
1900 | 1900 | |
|
1901 | 1901 | # Start with a clean slate of completions |
|
1902 | 1902 | matches = [] |
General Comments 0
You need to be logged in to leave comments.
Login now