Skip to content

fix: resolve lifecycle values from Typer context - #364

Open
codeforester wants to merge 2 commits into
mainfrom
bug/356-20260918-typer-lifecycle-context
Open

codeforester wants to merge 2 commits into
mainfrom
bug/356-20260918-typer-lifecycle-context

Conversation

@codeforester

Copy link
Copy Markdown
Contributor

Summary

  • Resolve omitted-context lifecycle lookups from the active Typer-owned Click context, including the vendored context stack.
  • Preserve explicit context lookup and the outside-invocation error.
  • Cover normalized lifecycle values from a nested Typer command.

Closes #356

Validation

  • uv run --extra dev --extra typer --extra quality python -m pytest tests/test_typer_adapter.py tests/test_lifecycle_options.py -q
  • uv run --extra dev --extra typer --extra quality python -m mypy --strict lib/python/base_cli/lifecycle_options.py
  • Ruff check/format and git diff --check

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.

bug: resolve public lifecycle values from the active Typer Click dialect

1 participant