]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix type annotation of `pstats.FunctionProfile.ncalls` (#96741)
authorRuan Comelli <ruancomelli@gmail.com>
Thu, 15 Sep 2022 01:33:43 +0000 (22:33 -0300)
committerGitHub <noreply@github.com>
Thu, 15 Sep 2022 01:33:43 +0000 (18:33 -0700)
commit8e9a37dde44c9fa0b961cb2db5dc8266e1f85d11
tree3ff5180c57d3b7897d962d3bec11b69860164ad6
parenta83fdf2563aad794f0b0a78e534313bbe050d1eb
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.
Lib/pstats.py
Misc/NEWS.d/next/Library/2022-09-15-00-37-33.gh-issue-96741.4b6czN.rst [new file with mode: 0644]