mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Akuli and srittau: Remove Python 2 branches from Python 3 stubs (#5461)
* run script and do some manual changes (Akuli) * do the whole thing manually (srittau) * merge changes (Akuli) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Dict, List, Optional, Text
|
||||
|
||||
_ModuleGlobals = Dict[str, Any]
|
||||
@@ -8,6 +7,4 @@ 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: ...
|
||||
def lazycache(filename: Text, module_globals: _ModuleGlobals) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user