Skip to content

Commit d600237

Browse files
Apply suggestions from code review
1 parent 1a29494 commit d600237

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/pytest_codspeed/instruments/walltime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def _measure_pedantic_iter( # noqa: C901
299299
pedantic_options: PedanticOptions[Any],
300300
name: str,
301301
uri: str,
302-
) -> Iterator[tuple[int, tuple[Any], dict[str, Any]]]:
302+
) -> Iterator[tuple[range, tuple[Any, ...], dict[str, Any]]]:
303303
benchmark_config = BenchmarkConfig.from_codspeed_config_and_marker_data(
304304
self.config, marker_options
305305
)

src/pytest_codspeed/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def _measure(
284284
marker_options = BenchmarkMarkerOptions.from_pytest_item(node)
285285
uri, name = get_git_relative_uri_and_name(node.nodeid, config.rootpath)
286286
if iscoroutinefunction(fn):
287-
return _async_measure(
287+
return _async_measure( # type: ignore[return-value]
288288
plugin, marker_options, pedantic_options, name, uri, fn, args, kwargs
289289
)
290290
else:

0 commit comments

Comments
 (0)