From d678d380cb407bea0b80e0246752b24e61267478 Mon Sep 17 00:00:00 2001
From: Daniel Hahler <git@thequod.de>
Date: Sat, 25 Jan 2020 19:21:19 +0100
Subject: [PATCH] typing: tests: tmpfile

---
 testing/test_capture.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testing/test_capture.py b/testing/test_capture.py
index e6862f313..9261c8441 100644
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -8,6 +8,7 @@ import textwrap
 from io import StringIO
 from io import UnsupportedOperation
 from typing import BinaryIO
+from typing import Generator
 from typing import List
 from typing import TextIO
 
@@ -832,7 +833,7 @@ def test_dontreadfrominput():
 
 
 @pytest.fixture
-def tmpfile(testdir):
+def tmpfile(testdir) -> Generator[BinaryIO, None, None]:
     f = testdir.makepyfile("").open("wb+")
     yield f
     if not f.closed: