diff options
author | Ruan Comelli <ruancomelli@gmail.com> | 2022-09-15 01:33:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 01:33:43 (GMT) |
commit | 8e9a37dde44c9fa0b961cb2db5dc8266e1f85d11 (patch) | |
tree | 3ff5180c57d3b7897d962d3bec11b69860164ad6 /Lib | |
parent | a83fdf2563aad794f0b0a78e534313bbe050d1eb (diff) | |
download | cpython-8e9a37dde44c9fa0b961cb2db5dc8266e1f85d11.zip cpython-8e9a37dde44c9fa0b961cb2db5dc8266e1f85d11.tar.gz cpython-8e9a37dde44c9fa0b961cb2db5dc8266e1f85d11.tar.bz2 |
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.
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 8e0743f..8040831 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -57,7 +57,7 @@ class SortKey: @dataclass(unsafe_hash=True) class FunctionProfile: - ncalls: int + ncalls: str tottime: float percall_tottime: float cumtime: float |