Skip to content
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

Bump typer from 0.12.5 to 0.14.0 #209

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 2, 2024

Bumps typer from 0.12.5 to 0.14.0.

Release notes

Sourced from typer's releases.

0.14.0

Breaking Changes

  • 🔥 Remove auto naming of groups added via 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:

import typer
app = typer.Typer()
users_app = typer.Typer()
app.add_typer(users_app)
@​users_app.callback()
def users():  # <-- This was the inferred command group name
"""
Manage users in the app.
"""
@​users_app.command()
def create(name: str):
print(f"Creating user: {name}")

...the command group would be named users, based on the name of the function def users().

Now you need to set it explicitly:

import typer
app = typer.Typer()
users_app = typer.Typer()
app.add_typer(users_app, name="users")  # <-- Explicitly set the command group name
@​users_app.callback()
def users():
"""
Manage users in the app.
"""
@​users_app.command()
def create(name: str):
</tr></table>

... (truncated)

Changelog

Sourced from typer's changelog.

0.14.0

Breaking Changes

  • 🔥 Remove auto naming of groups added via 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:

import typer
app = typer.Typer()
users_app = typer.Typer()
app.add_typer(users_app)
@​users_app.callback()
def users():  # <-- This was the inferred command group name
"""
Manage users in the app.
"""
@​users_app.command()
def create(name: str):
print(f"Creating user: {name}")

...the command group would be named users, based on the name of the function def users().

Now you need to set it explicitly:

import typer
app = typer.Typer()
users_app = typer.Typer()
app.add_typer(users_app, name="users")  # <-- Explicitly set the command group name
@​users_app.callback()
def users():
"""
Manage users in the app.
"""
@​users_app.command()
</tr></table>

... (truncated)

Commits
  • f5c0b8a 🔖 Release version 0.14.0
  • 7015323 📝 Update release notes
  • 35bad6a 📝 Update release notes
  • 2d1a598 🔥 Remove auto naming of groups added via add_typer based on the group's cal...
  • 45cbfcd 📝 Update release notes
  • 8af0b48 ⬆ Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.12.2 (#1043)
  • 62525f2 📝 Update release notes
  • be45e58 ⬆ Bump mkdocs-material from 9.5.44 to 9.5.46 (#1062)
  • 740610f 📝 Update release notes
  • 5fe79c2 ⬆ Bump ruff from 0.7.4 to 0.8.0 (#1059)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [typer](https://github.com/fastapi/typer) from 0.12.5 to 0.14.0.
- [Release notes](https://github.com/fastapi/typer/releases)
- [Changelog](https://github.com/fastapi/typer/blob/master/docs/release-notes.md)
- [Commits](fastapi/typer@0.12.5...0.14.0)

---
updated-dependencies:
- dependency-name: typer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from pnadolny13 December 2, 2024 21:26
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 2, 2024

The following labels could not be found: dependencies.

Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 9, 2024

Superseded by #212.

@dependabot dependabot bot closed this Dec 9, 2024
@dependabot dependabot bot deleted the dependabot/pip/typer-0.14.0 branch December 9, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants