Skip to content

Commit eb16715

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 79ce682 commit eb16715

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

testing/python/fixtures.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
from pathlib import Path
66
import sys
77
import textwrap
8-
from typing import Any, Callable
8+
from typing import Any
9+
from typing import Callable
910

1011
from _pytest.compat import getfuncargnames
1112
from _pytest.config import ExitCode
@@ -5117,14 +5118,15 @@ def none_return() -> None:
51175118

51185119
class T:
51195120
pass
5121+
51205122
def class_return() -> T:
51215123
return T()
5122-
5124+
51235125
assert get_return_annotation(class_return) == "T"
51245126

51255127
def enum_return() -> ExitCode:
51265128
return ExitCode(0)
5127-
5129+
51285130
assert get_return_annotation(enum_return) == "ExitCode"
51295131

51305132
assert get_return_annotation(range) == ""

testing/python/show_fixtures_per_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ def test_args(arg2, arg3):
162162

163163
def test_show_return_annotation(pytester: Pytester) -> None:
164164
p = pytester.makepyfile(
165-
'''
165+
"""
166166
import pytest
167167
@pytest.fixture
168168
def five() -> int:
169169
return 5
170170
def test_five(five):
171171
pass
172-
'''
172+
"""
173173
)
174174

175175
result = pytester.runpytest("--fixtures-per-test", p)

0 commit comments

Comments
 (0)