Last ditch attempt

This commit is contained in:
Ran Benita 2023-01-20 13:13:18 +02:00
parent 42fec94c13
commit 70f734f219
1 changed files with 5 additions and 2 deletions

View File

@ -503,8 +503,11 @@ if sys.version_info >= (3, 11) or TYPE_CHECKING:
err: AnyStr
else:
CaptureResult = collections.namedtuple("CaptureResult", ["out", "err"])
CaptureResult.__doc__ = """The result of :method:`CaptureFixture.readouterr`."""
class CaptureResult(
collections.namedtuple("CaptureResult", ["out", "err"]), Generic[AnyStr]
):
__doc__ = """The result of :method:`CaptureFixture.readouterr`."""
class MultiCapture(Generic[AnyStr]):