diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-05 21:57:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 21:57:26 (GMT) |
commit | 6f23472345aedbba414620561ba89fa3cf6eda24 (patch) | |
tree | 540ff9c21dd25ddad24dfc3fecc7d5c520a80ba3 /Lib | |
parent | 9f1c9b1a7a04513fcc8a679fb1075701f37ab621 (diff) | |
download | cpython-6f23472345aedbba414620561ba89fa3cf6eda24.zip cpython-6f23472345aedbba414620561ba89fa3cf6eda24.tar.gz cpython-6f23472345aedbba414620561ba89fa3cf6eda24.tar.bz2 |
[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 8e9a37dde44c9fa0b961cb2db5dc8266e1f85d11)
Co-authored-by: Ruan Comelli <ruancomelli@gmail.com>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pstats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index 0f93ae0..ac88c04 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -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 |