mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
pstats: fix stream type, add class var (#3862)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user