1
1
import sys
2
2
import types
3
- from _typeshed import StrPath , TraceFunction
4
- from collections .abc import Callable , Mapping , Sequence
3
+ from _typeshed import Incomplete , StrPath , TraceFunction
4
+ from collections .abc import Callable , Iterable , Mapping , Sequence
5
5
from typing import Any , TypeVar
6
6
from typing_extensions import ParamSpec , TypeAlias
7
7
@@ -12,6 +12,12 @@ _P = ParamSpec("_P")
12
12
_FileModuleFunction : TypeAlias = tuple [str , str | None , str ]
13
13
14
14
class CoverageResults :
15
+ counts : dict [tuple [str , int ], int ]
16
+ counter : dict [tuple [str , int ], int ]
17
+ calledfuncs : dict [_FileModuleFunction , int ]
18
+ callers : dict [tuple [_FileModuleFunction , _FileModuleFunction ], int ]
19
+ inifile : StrPath | None
20
+ outfile : StrPath | None
15
21
def __init__ (
16
22
self ,
17
23
counts : dict [tuple [str , int ], int ] | None = None ,
@@ -27,7 +33,21 @@ class CoverageResults:
27
33
) -> tuple [int , int ]: ...
28
34
def is_ignored_filename (self , filename : str ) -> bool : ... # undocumented
29
35
36
+ class _Ignore :
37
+ def __init__ (self , modules : Iterable [str ] | None = None , dirs : Iterable [StrPath ] | None = None ) -> None : ...
38
+ def names (self , filename : str , modulename : str ) -> int : ...
39
+
30
40
class Trace :
41
+ inifile : StrPath | None
42
+ outfile : StrPath | None
43
+ ignore : _Ignore
44
+ counts : dict [str , int ]
45
+ pathtobasename : dict [Incomplete , Incomplete ]
46
+ donothing : int
47
+ trace : int
48
+ start_time : int | None
49
+ globaltrace : TraceFunction
50
+ localtrace : TraceFunction
31
51
def __init__ (
32
52
self ,
33
53
count : int = 1 ,
0 commit comments