##// END OF EJS Templates
remove some u prefix and add types
Matthias Bussonnier -
Show More
@@ -1594,7 +1594,7 b' class IPCompleter(Completer):'
1594 # Remove used named arguments from the list, no need to show twice
1594 # Remove used named arguments from the list, no need to show twice
1595 for namedArg in set(namedArgs) - usedNamedArgs:
1595 for namedArg in set(namedArgs) - usedNamedArgs:
1596 if namedArg.startswith(text):
1596 if namedArg.startswith(text):
1597 argMatches.append(u"%s=" %namedArg)
1597 argMatches.append("%s=" %namedArg)
1598 except:
1598 except:
1599 pass
1599 pass
1600
1600
@@ -1734,8 +1734,8 b' class IPCompleter(Completer):'
1734 return '', []
1734 return '', []
1735
1735
1736
1736
1737 def latex_matches(self, text):
1737 def latex_matches(self, text:str) -> Tuple[str, Sequence[str]]:
1738 u"""Match Latex syntax for unicode characters.
1738 """Match Latex syntax for unicode characters.
1739
1739
1740 This does both ``\\alp`` -> ``\\alpha`` and ``\\alpha`` -> ``α``
1740 This does both ``\\alp`` -> ``\\alpha`` and ``\\alpha`` -> ``α``
1741 """
1741 """
@@ -1752,7 +1752,7 b' class IPCompleter(Completer):'
1752 matches = [k for k in latex_symbols if k.startswith(s)]
1752 matches = [k for k in latex_symbols if k.startswith(s)]
1753 if matches:
1753 if matches:
1754 return s, matches
1754 return s, matches
1755 return u'', []
1755 return '', ()
1756
1756
1757 def dispatch_custom_completer(self, text):
1757 def dispatch_custom_completer(self, text):
1758 if not self.custom_completers:
1758 if not self.custom_completers:
@@ -2132,7 +2132,7 b' class IPCompleter(Completer):'
2132
2132
2133 return _CompleteResult(text, _matches, origins, completions)
2133 return _CompleteResult(text, _matches, origins, completions)
2134
2134
2135 def fwd_unicode_match(self, text:str) -> Tuple[str, Iterable[str]]:
2135 def fwd_unicode_match(self, text:str) -> Tuple[str, Sequence[str]]:
2136 """
2136 """
2137
2137
2138 Forward match a string starting with a backslash with a list of
2138 Forward match a string starting with a backslash with a list of
General Comments 0
You need to be logged in to leave comments. Login now