Skip to content

Commit f4a9ced

Browse files
pre-commit-ci[bot]kianelbo
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bc6450d commit f4a9ced

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
@@ -6,7 +6,8 @@
66
from pathlib import Path
77
import sys
88
import textwrap
9-
from typing import Any, Callable
9+
from typing import Any
10+
from typing import Callable
1011

1112
from _pytest.compat import getfuncargnames
1213
from _pytest.config import ExitCode
@@ -5118,14 +5119,15 @@ def none_return() -> None:
51185119

51195120
class T:
51205121
pass
5122+
51215123
def class_return() -> T:
51225124
return T()
5123-
5125+
51245126
assert get_return_annotation(class_return) == "T"
51255127

51265128
def enum_return() -> ExitCode:
51275129
return ExitCode(0)
5128-
5130+
51295131
assert get_return_annotation(enum_return) == "ExitCode"
51305132

51315133
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)