mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-30 14:52:41 +00:00
Resolve mypy error after git merge master:
``` 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) ```
This commit is contained in:
parent
dbd79474b4
commit
195a7c9892
@ -93,8 +93,8 @@ def run(args: List[str]) -> None:
|
|||||||
continue
|
continue
|
||||||
if selected_holder_type != "all" and nb_label != selected_holder_type:
|
if selected_holder_type != "all" and nb_label != selected_holder_type:
|
||||||
continue
|
continue
|
||||||
nb1 = nb_type(data_size) # type: ignore[misc]
|
nb1 = nb_type(data_size)
|
||||||
nb2 = nb_type(data_size) # type: ignore[misc]
|
nb2 = nb_type(data_size)
|
||||||
|
|
||||||
def many_sum(call_repetitions: int) -> float:
|
def many_sum(call_repetitions: int) -> float:
|
||||||
assert int(round(nb1.sum())) == data_size
|
assert int(round(nb1.sum())) == data_size
|
||||||
|
Loading…
Reference in New Issue
Block a user