mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 00:13:46 +08:00
add rlcompleter (#455)
This commit is contained in:
1 parent
04d799f656
commit
59d06de83e
1 file changed
+13
@@ -0,0 +1,13 @@
|
||||
# Stubs for rlcompleter
|
||||
|
||||
from typing import Optional, Union
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
_Text = str
|
||||
else:
|
||||
_Text = Union[str, unicode]
|
||||
|
||||
|
||||
class Completer:
|
||||
def complete(self, text: _Text, state: int) -> Optional[str]: ...
|
||||
Reference in new issue
Block a user