Skip to content

Commit 2efe5ed

Browse files
Update valgrind.py
1 parent 3b6ca49 commit 2efe5ed

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/pytest_codspeed/instruments/valgrind.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import os
44
import warnings
5-
from collections.abc import Awaitable
65
from contextlib import contextmanager
76
from typing import TYPE_CHECKING
87

@@ -12,6 +11,7 @@
1211
from pytest_codspeed.utils import SUPPORTS_PERF_TRAMPOLINE
1312

1413
if TYPE_CHECKING:
14+
from collections.abc import Awaitable
1515
from typing import Any, Callable
1616

1717
from pytest import Session
@@ -112,7 +112,9 @@ async def __codspeed_root_frame__() -> T:
112112

113113
@contextmanager
114114
def _measure_pedantic_context(
115-
self, pedantic_options: PedanticOptions[T], uri: str,
115+
self,
116+
pedantic_options: PedanticOptions[T],
117+
uri: str,
116118
) -> T:
117119
if pedantic_options.rounds != 1 or pedantic_options.iterations != 1:
118120
warnings.warn(

0 commit comments

Comments
 (0)