Skip to content

docs: annotate generic Context examples #427

Description

@codeforester

Problem

PR #414 added strict typing coverage for the examples and compatibility consumers, but the public snippets in README.md and docs/integrations.md still annotate callbacks as base_cli.Context without its three required type parameters. Strict mypy rejects that form as a missing generic type argument.

Scope

Update the affected public examples to use an explicit, neutral base_cli.Context[object, object, object] annotation (or an equivalent documented alias). Keep the examples readable and do not change the public API or runtime behavior.

Acceptance criteria

  • No public README or integration example uses unparameterized base_cli.Context.
  • The affected snippets remain consistent with docs/user-config-typing.md and the three-parameter public Context contract.
  • Documentation validation and the strict typing gate pass.

Origin

Follow-up to merged PR #414 / issue #393 review feedback.

Activity

  1. added this to the v0.5.0 milestone on Oct 5, 2026
  2. self-assigned this
    on Oct 5, 2026
  3. added
    documentationDocumentation improvements
    enhancementNew feature or product improvement
    and removed
    enhancementNew feature or product improvement
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationDocumentation improvements

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions