Skip to content

Commit 37d9ee5

Browse files
committed
fixed python 3.8 type hints
1 parent 4116c07 commit 37d9ee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

progressbar/terminal/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ def __call__(self, stream) -> tuple[int, int]:
165165
)
166166

167167
if len(res_list) == 1:
168-
return types.cast(tuple[int, int], res_list[0])
168+
return types.cast(types.Tuple[int, int], res_list[0])
169169

170-
return types.cast(tuple[int, int], tuple(res_list))
170+
return types.cast(types.Tuple[int, int], tuple(res_list))
171171

172172
def row(self, stream):
173173
row, _ = self(stream)

0 commit comments

Comments
 (0)