Skip to content

fix(deps): make typer an optional dependency#40

Merged
jlopez merged 1 commit intomainfrom
fix/optional-typer
Mar 2, 2026
Merged

fix(deps): make typer an optional dependency#40
jlopez merged 1 commit intomainfrom
fix/optional-typer

Conversation

@jlopez
Copy link
Owner

@jlopez jlopez commented Mar 2, 2026

Move typer to a cli optional extra so library consumers (e.g. the
jackery-ha Home Assistant integration) don't pull in typer/rich, which
can conflict with pre-installed versions in the HA Docker image.

Guard the typer import in cli.py with a friendly error message when
the extra is not installed.

Fixes: #39

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Move typer to a `cli` optional extra so library consumers (e.g. the
jackery-ha Home Assistant integration) don't pull in typer/rich, which
can conflict with pre-installed versions in the HA Docker image.

Guard the typer import in cli.py with a friendly error message when
the extra is not installed.

Fixes: #39

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jlopez jlopez merged commit b40e1d5 into main Mar 2, 2026
4 checks passed
@jlopez jlopez deleted the fix/optional-typer branch March 2, 2026 22:07
jlopez added a commit that referenced this pull request Mar 2, 2026
### Bug Fixes

* **deps:** make typer an optional dependency ([#40](#40)) ([b40e1d5](b40e1d5)), closes [#39](#39)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make typer an optional dependency

1 participant