Skip to content

refactor(deps): update dependency typer to ^0.15.0#27

Merged
AnotherStranger merged 1 commit intodevfrom
renovate/typer-0.x
Jan 23, 2025
Merged

refactor(deps): update dependency typer to ^0.15.0#27
AnotherStranger merged 1 commit intodevfrom
renovate/typer-0.x

Conversation

@renovate
Copy link

@renovate renovate bot commented Nov 14, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
typer (changelog) ^0.12.0 -> ^0.15.0 age adoption passing confidence

Release Notes

fastapi/typer (typer)

v0.15.1

Compare Source

Features
  • 🗑️ Deprecate shell_complete and continue to use autocompletion for CLI parameters. PR #​974 by @​svlandeg.
Docs
Internal

v0.15.0

Compare Source

Features
Internal

v0.14.0

Compare Source

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.
    """

@&#8203;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

@&#8203;users_app.callback()
def users():
    """
    Manage users in the app.
    """

@&#8203;users_app.command()
def create(name: str):
    print(f"Creating user: {name}")

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
Fixes
Refactors
Internal

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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/typer-0.x branch from 2fa0912 to 970c861 Compare November 23, 2024 14:09
@renovate renovate bot force-pushed the renovate/typer-0.x branch from 970c861 to 407ef38 Compare December 6, 2024 01:36
@renovate renovate bot changed the title refactor(deps): update dependency typer to ^0.13.0 refactor(deps): update dependency typer to ^0.14.0 Dec 6, 2024
@renovate renovate bot changed the title refactor(deps): update dependency typer to ^0.14.0 refactor(deps): update dependency typer to ^0.15.0 Dec 10, 2024
@renovate renovate bot force-pushed the renovate/typer-0.x branch from 407ef38 to e4d3837 Compare December 10, 2024 17:32
@renovate renovate bot force-pushed the renovate/typer-0.x branch from e4d3837 to 86522c9 Compare January 23, 2025 08:33
@AnotherStranger AnotherStranger merged commit 1d70984 into dev Jan 23, 2025
4 of 5 checks passed
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.

1 participant