Skip to content

Upgrading typer 0.11 to 0.12

Breaking0.11.1 → 0.12.5Platform1New5Changed13Fixed11Other60

BreakingUpgrade verdict

A platform requirement change.

  • Remove Python 3.6 specific code paths.
1 item needs code or config changes

Adds rich >=10.11.0, shellingham >=1.3.0.

Installs 7 packages in all (was 2).

Platform1
Remove Python 3.6 specific code paths.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: class State
  • added: class TyperCLIGroup(typer.core.TyperGroup)
  • added: constructor State() -> None
  • added: function callback(ctx: typer.Context, *, path_or_module: str=…, app: str=…, func: str=…, version: bool=…) -> None
  • added: function docs(ctx: typer.Context, name: str=…, output: Optional[Path]=…, title: Optional[str]=…) -> None
  • added: function get_docs_for_click(*, obj: Command, ctx: typer.Context, indent: int=…, name: str=…, call_prefix: str=…, title: Optional[str]=…) -> str
  • added: function get_typer_from_module(module: Any) -> Optional[typer.Typer]
  • added: function get_typer_from_state() -> Optional[typer.Typer]
  • added: function main() -> Any
  • added: function maybe_add_run_to_cli(cli: click.Group) -> None
  • added: function maybe_update_state(ctx: click.Context) -> None
  • added: function print_version(ctx: click.Context, param: Option, value: bool) -> None
  • added: method TyperCLIGroup.get_command(ctx: click.Context, name: str) -> Optional[Command]
  • added: method TyperCLIGroup.invoke(ctx: click.Context) -> Any
  • added: method TyperCLIGroup.list_commands(ctx: click.Context) -> List[str]
  • added: method TyperCLIGroup.maybe_add_run(ctx: click.Context) -> None
  • added: variable app
  • added: variable default_app_names
  • added: variable default_func_names
  • added: variable state
  • added: variable utils_app
  • added: variable DEFAULT_MARKUP_MODE
  • added: variable DEFAULT_MARKUP_MODE: MarkupMode
  • changed: function generate_tuple_convertor(types: Sequence[Any]) -> Callable[[Tuple[Any, ...]], Tuple[Any, ...]] → function generate_tuple_convertor(types: Sequence[Any]) -> Callable[[Optional[Tuple[Any, ...]]], Optional[Tuple[Any, ...]]]