1 import sys 2 from typing import Any, Dict, Optional, Union 3 4 if sys.version_info >= (3,): 5 _Text = str 6 else: 7 _Text = Union[str, unicode] 8 9 class Completer: 10 def __init__(self, namespace: Optional[Dict[str, Any]] = ...) -> None: ... 11 def complete(self, text: _Text, state: int) -> Optional[str]: ... 12