Skip to content

Lazily import rich #226

@bckohan

Description

@bckohan

Rich is only needed to print helps and tracebacks. Version 0.17 of typer lazily imports rich only when needed which cut in half the startup time of the CLI. This is very important for tab completion performance. Make sure rich is also lazily imported in django-typer.

fastapi/typer#744
fastapi/typer#1128

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions