mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +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,12 +1,9 @@
|
||||
import sys
|
||||
from decimal import Decimal
|
||||
from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union
|
||||
|
||||
# workaround for mypy#2010
|
||||
if sys.version_info >= (3, 0):
|
||||
from builtins import str as _str
|
||||
else:
|
||||
from __builtin__ import str as _str
|
||||
from builtins import str as _str
|
||||
from decimal import Decimal
|
||||
from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union
|
||||
|
||||
CODESET: int
|
||||
D_T_FMT: int
|
||||
@@ -98,10 +95,7 @@ else:
|
||||
def format_string(f: _str, val: Any, grouping: bool = ...) -> _str: ...
|
||||
|
||||
def currency(val: Union[int, float, Decimal], symbol: bool = ..., grouping: bool = ..., international: bool = ...) -> _str: ...
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
def delocalize(string: _str) -> _str: ...
|
||||
|
||||
def delocalize(string: _str) -> _str: ...
|
||||
def atof(string: _str, func: Callable[[_str], float] = ...) -> float: ...
|
||||
def atoi(string: _str) -> int: ...
|
||||
def str(val: float) -> _str: ...
|
||||
|
||||
Reference in New Issue
Block a user