File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
import time
6
6
from typing import Any , Callable , Dict , List
7
7
8
- import pybind11_ubench_holder_comparison as m # type: ignore
8
+ import pybind11_ubench_holder_comparison as m # type: ignore[import]
9
9
10
10
number_bucket_pc = None
11
11
@@ -89,8 +89,8 @@ def find_call_repetitions(
89
89
continue
90
90
if selected_holder_type != "all" and nb_label != selected_holder_type :
91
91
continue
92
- nb1 = nb_type (data_size ) # type: ignore
93
- nb2 = nb_type (data_size ) # type: ignore
92
+ nb1 = nb_type (data_size ) # type: ignore[misc]
93
+ nb2 = nb_type (data_size ) # type: ignore[misc]
94
94
95
95
def many_sum (call_repetitions : int ) -> float :
96
96
assert int (round (nb1 .sum ())) == data_size
@@ -117,7 +117,7 @@ def many_add(call_repetitions: int) -> float:
117
117
pflush (" Sum Add ratS ratA" )
118
118
row_0 = row
119
119
else :
120
- for curr , prev in zip (row , row_0 ):
120
+ for curr , prev in zip (row , row_0 ): # type: ignore[unreachable]
121
121
if prev :
122
122
rat = curr / prev
123
123
else :
Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ def run(args: List[str]) -> None:
19
19
20
20
def show () -> Optional [List [str ]]:
21
21
if header_row :
22
- if header is None :
22
+ if header is None : # type: ignore[unreachable]
23
23
print ("," .join (header_row ))
24
24
else :
25
25
assert header == header_row
26
26
if data_row is not None :
27
- print ("," .join (data_row ))
27
+ print ("," .join (data_row )) # type: ignore[unreachable]
28
28
data_row_buffer .append (data_row )
29
29
return header_row
30
30
You can’t perform that action at this time.
0 commit comments