Skip to content

Commit 5a0c1cf

Browse files
committedJan 19, 2025
Add noqas
1 parent 7c56822 commit 5a0c1cf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎stdlib/pstats.pyi

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
from _typeshed import StrOrBytesPath
2+
from _typeshed import Incomplete, StrOrBytesPath
33
from collections.abc import Iterable
44
from cProfile import Profile as _cProfile
55
from profile import Profile
@@ -45,15 +45,16 @@ else:
4545
if 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:

0 commit comments

Comments
 (0)