[3.10] Fix type annotation of pstats.FunctionProfile.ncalls (GH-96741) (#96836)

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:
Miss Islington (bot) 2022-10-05 14:57:26 -07:00 committed by GitHub
parent 9f1c9b1a7a
commit 6f23472345
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -56,7 +56,7 @@ class SortKey(str, Enum):
@dataclass(unsafe_hash=True)
class FunctionProfile:
ncalls: int
ncalls: str
tottime: float
percall_tottime: float
cumtime: float

View file

@ -0,0 +1 @@
Corrected type annotation for dataclass attribute ``pstats.FunctionProfile.ncalls`` to be ``str``.