Commit 8c4fdfd
committed
fix: Python 3.8 compatibility for type hints
Changed `tuple[...]` to `Tuple[...]` in type hints for Python 3.8
compatibility. The lowercase generic syntax was introduced in Python 3.9
(PEP 585), but our CI runs on Python 3.8.
Changes:
- Added `Tuple` to typing imports
- Changed return type annotation from `tuple[...]` to `Tuple[...]`
Fixes CI test collection error:
TypeError: 'type' object is not subscriptable1 parent e49ce3d commit 8c4fdfd
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| |||
0 commit comments