File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
import sys
2
- from _typeshed import StrOrBytesPath
2
+ from _typeshed import Incomplete , StrOrBytesPath
3
3
from collections .abc import Iterable
4
4
from cProfile import Profile as _cProfile
5
5
from profile import Profile
@@ -45,15 +45,16 @@ else:
45
45
if sys .version_info >= (3 , 9 ):
46
46
from dataclasses import dataclass , field
47
47
48
+ # ruff: noqa: PYI015
48
49
@dataclass (unsafe_hash = True )
49
50
class FunctionProfile :
50
51
ncalls : str
51
52
tottime : float
52
53
percall_tottime : float
53
54
cumtime : float
54
- percall_cumtime : float = field (default = 2 )
55
- file_name : str = field (default_factory = str )
56
- line_number : int = field (kw_only = True )
55
+ percall_cumtime : float = field (default = 2 ) # noqa: Y015
56
+ file_name : str = field (default_factory = Incomplete ) # noqa: Y015
57
+ line_number : int = field (kw_only = True ) # noqa: Y015
57
58
58
59
@dataclass (unsafe_hash = True )
59
60
class StatsProfile :
You can’t perform that action at this time.
0 commit comments