Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

chore(deps): bump typer from 0.13.1 to 0.14.0 #92

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.13.1 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.13.1 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.13.1...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 added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 2, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 2, 2024

Looks like typer is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Dec 2, 2024
@dependabot dependabot bot deleted the dependabot/pip/typer-0.14.0 branch December 2, 2024 14:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants