Files
typeshed/stdlib/2and3/rlcompleter.pyi
Omar Sandoval aab1b20c80 Add missing namespace argument to rlcompleter.Completer (#2105)
This argument has been around since 2.3, and it's documented in the
rlcompleter docstring (although not on python.org).
2018-05-09 22:12:02 -07:00

15 lines
334 B
Python

# Stubs for rlcompleter
from typing import Any, Dict, Optional, Union
import sys
if sys.version_info >= (3,):
_Text = str
else:
_Text = Union[str, unicode]
class Completer:
def __init__(self, namespace: Optional[Dict[str, Any]] = ...) -> None: ...
def complete(self, text: _Text, state: int) -> Optional[str]: ...