Skip to content

Commit 1185fb8

Browse files
authored
Merge pull request #7740 from radarhere/type_hints_conftest
2 parents 9c98162 + d331eb9 commit 1185fb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/conftest.py

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

33
import io
44

5+
import pytest
56

6-
def pytest_report_header(config):
7+
8+
def pytest_report_header(config: pytest.Config) -> str:
79
try:
810
from PIL import features
911

@@ -14,7 +16,7 @@ def pytest_report_header(config):
1416
return f"pytest_report_header failed: {e}"
1517

1618

17-
def pytest_configure(config):
19+
def pytest_configure(config: pytest.Config) -> None:
1820
config.addinivalue_line(
1921
"markers",
2022
"pil_noop_mark: A conditional mark where nothing special happens",

0 commit comments

Comments
 (0)