Skip to content

Commit

Permalink
fixed python 3.8 type hints
Browse files Browse the repository at this point in the history
wolph committed Dec 18, 2023
1 parent 4116c07 commit 37d9ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions progressbar/terminal/base.py
Original file line number Diff line number Diff line change
@@ -165,9 +165,9 @@ def __call__(self, stream) -> tuple[int, int]:
)

if len(res_list) == 1:
return types.cast(tuple[int, int], res_list[0])
return types.cast(types.Tuple[int, int], res_list[0])

return types.cast(tuple[int, int], tuple(res_list))
return types.cast(types.Tuple[int, int], tuple(res_list))

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

0 comments on commit 37d9ee5

Please sign in to comment.