Skip to content

Commit 9bda71d

Browse files
committed
Added python 3.7 type hinting compatibility
1 parent 3edbeb0 commit 9bda71d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

progressbar/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ class Undefined(metaclass=FalseMeta):
2424
IO = types.IO # type: ignore
2525
TextIO = types.TextIO # type: ignore
2626
except AttributeError:
27-
from typing.io import IO # type: ignore
27+
from typing.io import IO, TextIO # type: ignore
28+
29+
assert IO
30+
assert TextIO

0 commit comments

Comments
 (0)