mark cProfile as private in pstats.pyi (#1344)

This commit is contained in:
Jelle Zijlstra
2017-05-24 20:33:20 -07:00
committed by Guido van Rossum
parent c1b7fc7020
commit 383d1dc9e1

View File

@@ -1,5 +1,5 @@
from profile import Profile
from cProfile import Profile as cProfile
from cProfile import Profile as _cProfile
import os
import sys
from typing import Any, Dict, IO, Iterable, List, Text, Tuple, TypeVar, Union, overload
@@ -12,13 +12,13 @@ else:
_Path = Union[bytes, Text]
class Stats:
def __init__(self: _T, __arg: Union[None, str, Text, Profile, cProfile] = ...,
*args: Union[None, str, Text, Profile, cProfile, _T],
def __init__(self: _T, __arg: Union[None, str, Text, Profile, _cProfile] = ...,
*args: Union[None, str, Text, Profile, _cProfile, _T],
stream: 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, Text, Profile, _cProfile]) -> None: ...
def load_stats(self, arg: Union[None, str, Text, 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, Text, Profile, _cProfile, _T]) -> _T: ...
def dump_stats(self, filename: _Path) -> None: ...
def get_sort_arg_defs(self) -> Dict[str, Tuple[Tuple[Tuple[int, int], ...], str]]: ...
@overload