diff --git a/stdlib/2and3/pstats.pyi b/stdlib/2and3/pstats.pyi index 232139188..8bf1b0dae 100644 --- a/stdlib/2and3/pstats.pyi +++ b/stdlib/2and3/pstats.pyi @@ -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