Skip to content

Commit 65aeac3

Browse files
committed
Py37 fixes
1 parent 061a88d commit 65aeac3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/textual/drivers/_byte_stream.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
import io
44
from collections import deque
5-
from typing import Callable, Deque, Generator, Generic, Iterable, NamedTuple, TypeVar
5+
from typing import (
6+
Callable,
7+
Deque,
8+
Generator,
9+
Generic,
10+
Iterable,
11+
NamedTuple,
12+
Tuple,
13+
TypeVar,
14+
)
615

716
from typing_extensions import TypeAlias
817

@@ -126,7 +135,7 @@ class BytePacket(NamedTuple):
126135
payload: bytes
127136

128137

129-
class ByteStream(ByteStreamParser[tuple[str, bytes]]):
138+
class ByteStream(ByteStreamParser[Tuple[str, bytes]]):
130139
"""A stream of packets in the following format.
131140
132141
1 Byte for the type.

0 commit comments

Comments
 (0)