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

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

No files matched your search

+3 -2
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: ...