mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +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:
@@ -39,14 +39,9 @@ elif sys.version_info >= (3, 7):
|
||||
invalidation_mode: Optional[PycInvalidationMode] = ...,
|
||||
) -> Optional[AnyStr]: ...
|
||||
|
||||
elif sys.version_info >= (3, 2):
|
||||
else:
|
||||
def compile(
|
||||
file: AnyStr, cfile: Optional[AnyStr] = ..., dfile: Optional[AnyStr] = ..., doraise: bool = ..., optimize: int = ...
|
||||
) -> Optional[AnyStr]: ...
|
||||
|
||||
else:
|
||||
def compile(
|
||||
file: _EitherStr, cfile: Optional[_EitherStr] = ..., dfile: Optional[_EitherStr] = ..., doraise: bool = ...
|
||||
) -> None: ...
|
||||
|
||||
def main(args: Optional[List[Text]] = ...) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user