mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
13
stdlib/linecache.pyi
Normal file
13
stdlib/linecache.pyi
Normal file
@@ -0,0 +1,13 @@
|
||||
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] = ...) -> List[str]: ...
|
||||
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