Commit Graph
2 Commits
Author SHA1 Message Date
e810e290c4 fix(dclq): use typer's vendored click; allow typer 0.27 (#928)
* fix(dclq): use typer's vendored click; allow typer 0.27

typer >=0.26 vendors its own copy of click (typer._click) and raises those
exceptions instead of the external click package's. The dclq CLI referenced
the external click, so on typer >=0.26 bad input escaped the exit-code
handlers and the context-flag callback (-C/-A/-B/--context-scope) silently
no-op'd because the isinstance(param, click.Option) check no longer matched.

Import ClickException and Parameter from typer._click, catch the public
typer.Exit (moved out of typer._click in 0.27), and duck-type the option
check. Set the [dclq] typer range to >=0.26,<0.28, raise the core typer cap
to <0.28, and drop the now-unused external click dependency.

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(dclq): use typer.CallbackParam; drop click from tests

Annotate the context-flag callback with the public typer.CallbackParam
instead of typer._click.Parameter, read param_type_name directly, and
strip ANSI codes in test_cli_serialize with a regex instead of importing
click.unstyle, which only resolved through a transitive dev dependency.

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Update pyproject.toml

Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com>

---------

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
2026-10-27 16:54:28 +01:00
Peter W. J. Staar ebbc1ed2d1 fix: serialization into DCLX on splitted text across pages (#775)
* fix: serialization into DCLX on splitted text across pages

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

* fixing the unit-tests

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

---------

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
2026-09-15 09:25:23 +02:00