From fe4bea39a2f70edd49895b489a0318bdc1435dae Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 13 Feb 2018 16:19:44 -0800 Subject: [PATCH] fix return type of linecache.getlines (#1877) Randomly noticed this looking at the stub. Here is the code: https://github.com/python/cpython/blob/3.7/Lib/linecache.py#L37. --- stdlib/2and3/linecache.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/linecache.pyi b/stdlib/2and3/linecache.pyi index 9a152d6a0..3f35f469e 100644 --- a/stdlib/2and3/linecache.pyi +++ b/stdlib/2and3/linecache.pyi @@ -5,7 +5,7 @@ _ModuleGlobals = Dict[str, Any] def getline(filename: Text, lineno: int, module_globals: Optional[_ModuleGlobals] = ...) -> str: ... def clearcache() -> None: ... -def getlines(filename: Text, module_globals: Optional[_ModuleGlobals] = ...) -> None: ... +def getlines(filename: Text, module_globals: Optional[_ModuleGlobals] = ...) -> List[str]: ... def checkcache(filename: Optional[Text] = ...) -> None: ... def updatecache(filename: Text, module_globals: Optional[_ModuleGlobals] = ...) -> List[str]: ... if sys.version_info >= (3, 5):