[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>
2 files changed