mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Replace 'Text' with 'str' in py3 stdlib (#5466)
This commit is contained in:
@@ -2,7 +2,7 @@ import sys
|
||||
from _typeshed import AnyPath
|
||||
from cProfile import Profile as _cProfile
|
||||
from profile import Profile
|
||||
from typing import IO, Any, Dict, Iterable, List, Optional, Text, Tuple, TypeVar, Union, overload
|
||||
from typing import IO, Any, Dict, Iterable, List, Optional, Tuple, TypeVar, Union, overload
|
||||
|
||||
_Selector = Union[str, float, int]
|
||||
_T = TypeVar("_T", bound=Stats)
|
||||
@@ -24,14 +24,14 @@ class Stats:
|
||||
sort_arg_dict_default: Dict[str, Tuple[Any, str]]
|
||||
def __init__(
|
||||
self: _T,
|
||||
__arg: Union[None, str, Text, Profile, _cProfile] = ...,
|
||||
*args: Union[None, str, Text, Profile, _cProfile, _T],
|
||||
__arg: Union[None, str, Profile, _cProfile] = ...,
|
||||
*args: Union[None, str, Profile, _cProfile, _T],
|
||||
stream: Optional[IO[Any]] = ...,
|
||||
) -> None: ...
|
||||
def init(self, arg: Union[None, str, Text, Profile, _cProfile]) -> None: ...
|
||||
def load_stats(self, arg: Union[None, str, Text, Profile, _cProfile]) -> None: ...
|
||||
def init(self, arg: Union[None, str, Profile, _cProfile]) -> None: ...
|
||||
def load_stats(self, arg: Union[None, str, Profile, _cProfile]) -> None: ...
|
||||
def get_top_level_stats(self) -> None: ...
|
||||
def add(self: _T, *arg_list: Union[None, str, Text, Profile, _cProfile, _T]) -> _T: ...
|
||||
def add(self: _T, *arg_list: Union[None, str, Profile, _cProfile, _T]) -> _T: ...
|
||||
def dump_stats(self, filename: AnyPath) -> None: ...
|
||||
def get_sort_arg_defs(self) -> Dict[str, Tuple[Tuple[Tuple[int, int], ...], str]]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user