Skip to content

Commit 88331bd

Browse files
TechNiickScirlat Danut
andauthored
Add type hints to conftest.py (#2469)
Co-authored-by: Scirlat Danut <scirlatdanut@scirlats-mini.lan>
1 parent 5acee62 commit 88331bd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import functools
2+
from typing import Any, Callable, Dict
23

34
import pytest
45

56
from starlette.testclient import TestClient
67

8+
TestClientFactory = Callable[..., TestClient]
9+
710

811
@pytest.fixture
9-
def test_client_factory(anyio_backend_name, anyio_backend_options):
12+
def test_client_factory(
13+
anyio_backend_name: str,
14+
anyio_backend_options: Dict[str, Any],
15+
) -> TestClientFactory:
1016
# anyio_backend_name defined by:
1117
# https://anyio.readthedocs.io/en/stable/testing.html#specifying-the-backends-to-run-on
1218
return functools.partial(

0 commit comments

Comments
 (0)