aboutsummaryrefslogtreecommitdiff
path: root/test/utils.py
diff options
context:
space:
mode:
authorJ08nY2022-12-07 13:52:05 +0100
committerJ08nY2022-12-07 13:52:05 +0100
commit5bfcfa8d958366811a3869b0bf3372593bed075d (patch)
treedca489dff4dcc19085aa835453f8ca2e081f925d /test/utils.py
parent0dc7e9d148a7a860668fcbce269bcc249326887b (diff)
downloadpyecsca-5bfcfa8d958366811a3869b0bf3372593bed075d.tar.gz
pyecsca-5bfcfa8d958366811a3869b0bf3372593bed075d.tar.zst
pyecsca-5bfcfa8d958366811a3869b0bf3372593bed075d.zip
Diffstat (limited to 'test/utils.py')
-rw-r--r--test/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/utils.py b/test/utils.py
index a74fae4..d4893eb 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -66,10 +66,10 @@ class Profiler:
else:
self._prof.print_stats("cumtime")
- def get_time(self):
+ def get_time(self) -> float:
if self._state != "out":
raise ValueError
if self._prof_type == "py":
- return self._root_frame.time()
+ return self._root_frame.time
else:
- return pstats.Stats(self._prof).total_tt
+ return pstats.Stats(self._prof).total_tt # type: ignore