mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
[3.11] Fix type annotation of pstats.FunctionProfile.ncalls
(GH-96741) (#96835)
This change aligns the type annotation of `pstats.FunctionProfile.ncalls` with its runtime type.
(cherry picked from commit 8e9a37dde4
)
Co-authored-by: Ruan Comelli <ruancomelli@gmail.com>
This commit is contained in:
parent
3dc7bfee3e
commit
a8d50aeada
2 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,7 @@ class SortKey:
|
||||||
|
|
||||||
@dataclass(unsafe_hash=True)
|
@dataclass(unsafe_hash=True)
|
||||||
class FunctionProfile:
|
class FunctionProfile:
|
||||||
ncalls: int
|
ncalls: str
|
||||||
tottime: float
|
tottime: float
|
||||||
percall_tottime: float
|
percall_tottime: float
|
||||||
cumtime: float
|
cumtime: float
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Corrected type annotation for dataclass attribute ``pstats.FunctionProfile.ncalls`` to be ``str``.
|
Loading…
Add table
Add a link
Reference in a new issue