Skip to content

Commit c0453b5

Browse files
Update __init__.py
1 parent 5b86d75 commit c0453b5

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/pytest_codspeed/instruments/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import TYPE_CHECKING
66

77
if TYPE_CHECKING:
8+
from collections.abc import Awaitable
89
from typing import Any, Callable, ClassVar, TypeVar
910

1011
import pytest
@@ -37,6 +38,17 @@ def measure(
3738
**kwargs: P.kwargs,
3839
) -> T: ...
3940

41+
@abstractmethod
42+
async def measure_async(
43+
self,
44+
marker_options: BenchmarkMarkerOptions,
45+
name: str,
46+
uri: str,
47+
fn: Callable[P, Awaitable[T]],
48+
*args: P.args,
49+
**kwargs: P.kwargs,
50+
) -> T: ...
51+
4052
@abstractmethod
4153
def measure_pedantic(
4254
self,
@@ -46,6 +58,15 @@ def measure_pedantic(
4658
uri: str,
4759
) -> T: ...
4860

61+
@abstractmethod
62+
async def measure_pedantic(
63+
self,
64+
marker_options: BenchmarkMarkerOptions,
65+
pedantic_options: PedanticOptions[T],
66+
name: str,
67+
uri: str,
68+
) -> T: ...
69+
4970
@abstractmethod
5071
def report(self, session: pytest.Session) -> None: ...
5172

0 commit comments

Comments
 (0)