-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Support Typer 0.14 and 0.15 #1173
Conversation
b30f4e0
to
82a064b
Compare
It would be nice to support Typer >=0.15 for users who lock
|
@johnthagen any chance you have time to investigate the type checker issue and solve it? Hopefully while retaining support for older Typer versions. |
@dbanty So looking into it, this is the failing line:
It looks like according to Typer docs Looks like they want users to use The upstream PR |
82a064b
to
2fd1f58
Compare
2fd1f58
to
a252722
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
# Conflicts: # pdm.lock
> [!IMPORTANT] > Merging this pull request will create this release ## Breaking Changes ### Delete fewer files with `--overwrite` `--overwrite` will no longer delete the entire output directory before regenerating. Instead, it will only delete specific, known directories within that directory. Right now, that is only the generated `models` and `api` directories. Other generated files, like `README.md`, will be overwritten. Extra files and directories outside of those listed above will be left untouched, so you can any extra modules or files around while still updating `pyproject.toml` automatically. Closes #1105. ## Features - Support httpx 0.28 (#1172) ### Add `generate_all_tags` config option You can now, optionally, generate **duplicate** endpoint functions/modules using _every_ tag for an endpoint, not just the first one, by setting `generate_all_tags: true` in your configuration file. ## Fixes - Support Typer 0.14 and 0.15 (#1173) ### Fix minimum `attrs` version The minimum `attrs` dependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimum supported version since `openapi-python-client` 0.19.1. Closes #1084, thanks @astralblue! ### Fix compatibility with Pydantic 2.10+ #1176 by @Viicos Set `defer_build` to models that we know will fail to build, and call `model_rebuild` in the `__init__.py` file. Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
@dbanty Wanted to report that we upgraded to 0.23 and can confirm that this issue is fixed. Thanks! ❤️ |
This PR contains the following updates:
>0.6,<0.14
->>0.6,<0.16
Release Notes
fastapi/typer (typer)
v0.15.0
Compare Source
Features
Internal
v0.14.0
Compare Source
Breaking Changes
add_typer
based on the group's callback function name. PR #1052 by @patrick91.Before, it was supported to infer the name of a command group from the callback function name in the sub-app, so, in this code:
...the command group would be named
users
, based on the name of the functiondef users()
.Now you need to set it explicitly:
Updated docs SubCommand Name and Help.
Note: this change will enable important features in the next release. 🤩
Internal
v0.13.1
Compare Source
Features
Refactors
Docs
Internal
v0.13.0
Compare Source
Features
KeyboardInterrupt
separately from other exceptions. PR #1039 by @patrick91.launch
to not print anything when opening urls. PR #1035 by @patrick91.Fixes
Refactors
is_flag
andflag_value
parameters. PR #987 by @svlandeg._typing.py
file. PR #805 by @ivantodorovich._make_rich_text
. PR #959 by @svlandeg.Internal
_TYPER_RUN_INSTALL_COMPLETION_TESTS
is set. PR #995 by @svlandeg._make_rich_text
method. PR #972 by @svlandeg.labeler.yml
. PR #1014 by @tiangolo.issue-manager.yml
. PR #978 by @tiangolo.include-hidden-files
toTrue
when using theupload-artifact
GH action. PR #967 by @svlandeg.latest-changes
GitHub Action. PR #955 by @tiangolo.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.