mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
14 lines
333 B
Python
14 lines
333 B
Python
# Stubs for rlcompleter
|
|
|
|
import sys
|
|
from typing import Any, Dict, Optional, Union
|
|
|
|
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]: ...
|