mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
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).
This commit is contained in:
committed by
Jelle Zijlstra
parent
d289c20260
commit
aab1b20c80
@@ -1,6 +1,6 @@
|
||||
# Stubs for rlcompleter
|
||||
|
||||
from typing import Optional, Union
|
||||
from typing import Any, Dict, Optional, Union
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
@@ -10,4 +10,5 @@ else:
|
||||
|
||||
|
||||
class Completer:
|
||||
def __init__(self, namespace: Optional[Dict[str, Any]] = ...) -> None: ...
|
||||
def complete(self, text: _Text, state: int) -> Optional[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user