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

Typer-style interface throws an assertion when no callback is present on a subgroup. #145

Open
bckohan opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@bckohan
Copy link
Member

bckohan commented Nov 21, 2024

  from django_typer.management import Typer
  
  app = Typer()
  
  grp = Typer()
  app.add_typer(grp, name="grp")
  
  @grp.command()
  def cmd():
      print("grp:cmd")

The above fails because no callback is registered for grp, but it should work.

@bckohan bckohan added the bug Something isn't working label Nov 21, 2024
@bckohan bckohan self-assigned this Nov 21, 2024
@bckohan bckohan added this to the Version 3.0 milestone Nov 21, 2024
bckohan added a commit that referenced this issue Nov 21, 2024
@bckohan bckohan closed this as completed Nov 21, 2024
@bckohan bckohan reopened this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant