Skip to content

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

Closed
@bckohan

Description

@bckohan
  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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions