From aab1b20c804858fa31536374ceb110e93ae0eb63 Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Wed, 9 May 2018 22:12:02 -0700 Subject: [PATCH] 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). --- stdlib/2and3/rlcompleter.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/2and3/rlcompleter.pyi b/stdlib/2and3/rlcompleter.pyi index 17e98c64c..3db9d0c40 100644 --- a/stdlib/2and3/rlcompleter.pyi +++ b/stdlib/2and3/rlcompleter.pyi @@ -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]: ...