Commit 0d79568
authored
Release 0.27.0 (#1330)
> [!IMPORTANT]
> Merging this pull request will create this release
## Breaking Changes
### Drop support for Python 3.9
Both `openapi-python-client` itself and any generated clients no longer
support Python 3.9.
### Generated models now use `from __future__ import annotations`
This simplifies using forward references with the newer union syntax.
## Features
### Upgrade generated clients to 3.10 union syntax
All generated types now use the `A | B` syntax instead of `Union[A, B]`
or `Optional[A]`.
## Fixes
- Drop generated `requires-python` upper bounds for uv and PDM (#1329)
### Change default Ruff hook to `--fix-only`
This should enable `openapi-python-client` to keep auto-fixing lints
(like removing unused imports) but _not_ fail to
generate when unfixable lints are violated.
Since it's now unlikely for breaking changes to affect our usage (and by
popular request), the upper bound of `ruff`
has been lifted. Newer versions of `openapi-python-client` should no
longer be required to support newer versions of `ruff`.
## Notes
- Minimum Typer version is now 0.16
Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>1 parent 345bbbb commit 0d79568
7 files changed
+35
-38
lines changedThis file was deleted.
This file was deleted.
Lines changed: 0 additions & 7 deletions
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 7 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
16 | 50 | | |
17 | 51 | | |
18 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments