diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-21 10:08:05 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-21 10:08:05 -0400 |
commit | 0817978fcd67bc8e84369d163aff55c1a614b711 (patch) | |
tree | bf429e51da76aaae43f61d54d5eabb4c2fc5c9c9 /cmd2/argcomplete_bridge.py | |
parent | b89e0b369a0d11a78503ead276da28059c54db45 (diff) | |
download | cmd2-git-0817978fcd67bc8e84369d163aff55c1a614b711.tar.gz |
Removed remaining type hints in docstrings
Diffstat (limited to 'cmd2/argcomplete_bridge.py')
-rw-r--r-- | cmd2/argcomplete_bridge.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cmd2/argcomplete_bridge.py b/cmd2/argcomplete_bridge.py index 7bdb816f..51e856ef 100644 --- a/cmd2/argcomplete_bridge.py +++ b/cmd2/argcomplete_bridge.py @@ -23,16 +23,18 @@ else: import os import shlex import sys + from typing import List, Tuple, Union from . import constants from . import utils - def tokens_for_completion(line, endidx): + def tokens_for_completion(line: str, endidx: int) -> Union[Tuple[List[str], List[str], int, int], + Tuple[None, None, None, None]]: """ Used by tab completion functions to get all tokens through the one being completed - :param line: str - the current input line with leading whitespace removed - :param endidx: int - the ending index of the prefix text + :param line: the current input line with leading whitespace removed + :param endidx: the ending index of the prefix text :return: A 4 item tuple where the items are On Success tokens: list of unquoted tokens @@ -46,7 +48,7 @@ else: The last item in both lists is the token being tab completed On Failure - Both items are None + All 4 items are None """ unclosed_quote = '' quotes_to_try = copy.copy(constants.QUOTES) |