Skip to content

Commit 7bd0eb9

Browse files
abrookinsbsbodden
authored andcommitted
chore: fix type annotations
1 parent 9832bb5 commit 7bd0eb9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def clear_redis(redis_url: str) -> None:
5050
await client.aclose() # type: ignore[attr-defined]
5151

5252

53-
def pytest_addoption(parser):
53+
def pytest_addoption(parser: pytest.Parser) -> None:
5454
parser.addoption(
5555
"--run-api-tests",
5656
action="store_true",
@@ -59,13 +59,15 @@ def pytest_addoption(parser):
5959
)
6060

6161

62-
def pytest_configure(config):
62+
def pytest_configure(config: pytest.Config) -> None:
6363
config.addinivalue_line(
6464
"markers", "requires_api_keys: mark test as requiring API keys"
6565
)
6666

6767

68-
def pytest_collection_modifyitems(config, items):
68+
def pytest_collection_modifyitems(
69+
config: pytest.Config, items: list[pytest.Item]
70+
) -> None:
6971
if config.getoption("--run-api-tests"):
7072
return
7173
skip_api = pytest.mark.skip(

0 commit comments

Comments
 (0)