pstats: fix stream type, add class var (#3862)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-03-18 17:49:54 -07:00
committed by GitHub
parent 2be4dcae03
commit 1422fce882
2 changed files with 3 additions and 3 deletions

View File

@@ -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: ...

View File

@@ -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