Skip to content

Commit d678d38

Browse files
committed
typing: tests: tmpfile
1 parent 3f8f395 commit d678d38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/test_capture.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from io import StringIO
99
from io import UnsupportedOperation
1010
from typing import BinaryIO
11+
from typing import Generator
1112
from typing import List
1213
from typing import TextIO
1314

@@ -832,7 +833,7 @@ def test_dontreadfrominput():
832833

833834

834835
@pytest.fixture
835-
def tmpfile(testdir):
836+
def tmpfile(testdir) -> Generator[BinaryIO, None, None]:
836837
f = testdir.makepyfile("").open("wb+")
837838
yield f
838839
if not f.closed:

0 commit comments

Comments
 (0)