Commit d86b372
committed
Fix Python 3.8 compatibility: Use typing.Tuple instead of tuple[]
ISSUE:
Python 3.8 doesn't support PEP 585 generic type hints (tuple[...], list[...], etc.)
Error: TypeError: 'type' object is not subscriptable
CHANGE:
- Import Tuple from typing module
- Change 'tuple[int, str, str]' to 'Tuple[int, str, str]'
COMPATIBILITY:
- Works on Python 3.8+ (typing.Tuple available since 3.5)
- All 950 tests pass
This fixes CI failures on Python 3.8 builds.1 parent b2e404c commit d86b372
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments