mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 13:32:26 +08:00
merge and complete linecache stubs (#1320)
This commit is contained in:
committed by
Guido van Rossum
parent
4f2dd0f446
commit
fefdf185c7
12
stdlib/2and3/linecache.pyi
Normal file
12
stdlib/2and3/linecache.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
from typing import Any, Dict, List, Optional, Text
|
||||
|
||||
_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 checkcache(filename: Optional[Text] = ...) -> None: ...
|
||||
def updatecache(filename: Text, module_globals: Optional[_ModuleGlobals] = ...) -> List[str]: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
def lazycache(filename: Text, module_globals: _ModuleGlobals) -> bool: ...
|
||||
Reference in New Issue
Block a user