Fix type annotation of `pstats.FunctionProfile.ncalls` (#96741)

* fix: annotate `pstats.FunctionProfile.ncalls` as `str`

This change aligns the type annotation of `pstats.FunctionProfile.ncalls` with its runtime type.
This commit is contained in:
Ruan Comelli 2022-09-14 22:33:43 -03:00 committed by GitHub
parent a83fdf2563
commit 8e9a37dde4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class SortKey:
@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``.