Skip to content

Commit

Permalink
Resolve mypy error after git merge master:
Browse files Browse the repository at this point in the history
```
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

ubench/holder_comparison.py:96: error: Unused "type: ignore" comment  [unused-ignore]
ubench/holder_comparison.py:97: error: Unused "type: ignore" comment  [unused-ignore]
Found 2 errors in 1 file (checked 12 source files)
```
  • Loading branch information
rwgk committed Jan 16, 2025
1 parent dbd7947 commit 195a7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ubench/holder_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def find_call_repetitions(
continue
if selected_holder_type != "all" and nb_label != selected_holder_type:
continue
nb1 = nb_type(data_size) # type: ignore[misc]
nb2 = nb_type(data_size) # type: ignore[misc]
nb1 = nb_type(data_size)
nb2 = nb_type(data_size)

def many_sum(call_repetitions: int) -> float:
assert int(round(nb1.sum())) == data_size
Expand Down

0 comments on commit 195a7c9

Please sign in to comment.