mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-11 06:21:57 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
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 __builtin__ 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
|
||||
@@ -90,18 +87,8 @@ def resetlocale(category: int = ...) -> None: ...
|
||||
def strcoll(string1: _str, string2: _str) -> int: ...
|
||||
def strxfrm(string: _str) -> _str: ...
|
||||
def format(percent: _str, value: Union[float, Decimal], grouping: bool = ..., monetary: bool = ..., *additional: Any) -> _str: ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def format_string(f: _str, val: Any, grouping: bool = ..., monetary: bool = ...) -> _str: ...
|
||||
|
||||
else:
|
||||
def format_string(f: _str, val: Any, grouping: bool = ...) -> _str: ...
|
||||
|
||||
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 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