Skip to content

Commit c3e0a48

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

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
@@ -5,7 +5,6 @@
55
from pathlib import Path
66
import sys
77
import textwrap
8-
from typing import Tuple
98

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

5090+
50915091
def test_get_return_annotation() -> None:
50925092
def six() -> int:
50935093
return 6
5094+
50945095
assert get_return_annotation(six) == "int"
50955096

5096-
def two_sixes() -> Tuple[int, str]:
5097+
def two_sixes() -> tuple[int, str]:
50975098
return (6, "six")
5099+
50985100
assert get_return_annotation(two_sixes) == "Tuple[int, str]"
50995101

51005102
def no_annot():
51015103
return 6
5104+
51025105
assert get_return_annotation(no_annot) == ""
51035106

51045107
def none_return() -> None:
51055108
pass
5109+
51065110
assert get_return_annotation(none_return) == "None"

0 commit comments

Comments
 (0)