File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import sys
2- from _typeshed import StrOrBytesPath
2+ from _typeshed import Incomplete , StrOrBytesPath
33from collections .abc import Iterable
44from cProfile import Profile as _cProfile
55from profile import Profile
@@ -45,15 +45,16 @@ else:
4545if sys .version_info >= (3 , 9 ):
4646 from dataclasses import dataclass , field
4747
48+ # ruff: noqa: PYI015
4849 @dataclass (unsafe_hash = True )
4950 class FunctionProfile :
5051 ncalls : str
5152 tottime : float
5253 percall_tottime : float
5354 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
5758
5859 @dataclass (unsafe_hash = True )
5960 class StatsProfile :
You can’t perform that action at this time.
0 commit comments