Skip to content

Commit 2efc48e

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 37732a0 commit 2efc48e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testing/python/fixtures.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from pathlib import Path
77
import sys
88
import textwrap
9-
from typing import Tuple
109

1110
from _pytest.compat import getfuncargnames
1211
from _pytest.config import ExitCode
@@ -5089,19 +5088,24 @@ def test_method(self, /, fix):
50895088
result = pytester.runpytest()
50905089
result.assert_outcomes(passed=1)
50915090

5091+
50925092
def test_get_return_annotation() -> None:
50935093
def six() -> int:
50945094
return 6
5095+
50955096
assert get_return_annotation(six) == "int"
50965097

5097-
def two_sixes() -> Tuple[int, str]:
5098+
def two_sixes() -> tuple[int, str]:
50985099
return (6, "six")
5100+
50995101
assert get_return_annotation(two_sixes) == "Tuple[int, str]"
51005102

51015103
def no_annot():
51025104
return 6
5105+
51035106
assert get_return_annotation(no_annot) == ""
51045107

51055108
def none_return() -> None:
51065109
pass
5110+
51075111
assert get_return_annotation(none_return) == "None"

0 commit comments

Comments
 (0)