diff --git a/stdlib/2and3/pstats.pyi b/stdlib/2and3/pstats.pyi index 5c1bb2a35..e9e65f92e 100644 --- a/stdlib/2and3/pstats.pyi +++ b/stdlib/2and3/pstats.pyi @@ -2,7 +2,7 @@ from profile import Profile from cProfile import Profile as _cProfile import os import sys -from typing import Any, Dict, IO, Iterable, List, Text, Tuple, TypeVar, Union, overload +from typing import Any, Dict, IO, Iterable, List, Optional, Text, Tuple, TypeVar, Union, overload _Selector = Union[str, float, int] _T = TypeVar('_T', bound=Stats) @@ -12,9 +12,10 @@ else: _Path = Union[bytes, Text] 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], - stream: IO[Any] = ...) -> None: ... + 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 get_top_level_stats(self) -> None: ... diff --git a/tests/stubtest_whitelists/py3_common.txt b/tests/stubtest_whitelists/py3_common.txt index 9f6f94aea..d6fafc928 100644 --- a/tests/stubtest_whitelists/py3_common.txt +++ b/tests/stubtest_whitelists/py3_common.txt @@ -596,7 +596,6 @@ posix.uname_result._replace posix.waitid_result._asdict posix.waitid_result._make posix.waitid_result._replace -pstats.Stats.__init__ pwd.getpwnam pydoc.HTMLDoc.docdata pydoc.HTMLDoc.docproperty