summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/pstats.py2
-rw-r--r--Misc/NEWS.d/next/Library/2022-09-15-00-37-33.gh-issue-96741.4b6czN.rst1
2 files changed, 2 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
diff --git a/Misc/NEWS.d/next/Library/2022-09-15-00-37-33.gh-issue-96741.4b6czN.rst b/Misc/NEWS.d/next/Library/2022-09-15-00-37-33.gh-issue-96741.4b6czN.rst
new file mode 100644
index 0000000..e7f5331
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-09-15-00-37-33.gh-issue-96741.4b6czN.rst
@@ -0,0 +1 @@
+Corrected type annotation for dataclass attribute ``pstats.FunctionProfile.ncalls`` to be ``str``.