79344795

Date: 2025-01-10 06:39:36
Score: 0.5
Natty:
Report link

This can be achieved as of version 0.15.0 by not supplying a name when calling add_typer. Source.

main.py

import typer
import other

app = typer.Typer()
app.add_typer(other.app)

other.py

import typer

app = typer.Typer()

@app.command()
def foo():
  pass
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wesley McCloy