Commit de4714c
Doug Borg
fix: use List instead of list for Python 3.9 compatibility
Replace lowercase 'list' type hints with uppercase 'List' from typing module
to support Python 3.9. The lowercase generic types require either:
- Python 3.9+ with 'from __future__ import annotations'
- Python 3.10+ without future import
Since the project supports Python 3.9, use the typing.List import instead.
Fixes ty type checker errors in CI.1 parent 633b26f commit de4714c
File tree
2 files changed
+11
-2
lines changed- .claude
- src/openapi_python_generator/language_converters/python
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments