Skip to content

Add docstrings to CliRunner and internal model classes#1671

Closed
mastash3ff wants to merge 1 commit intofastapi:masterfrom
mastash3ff:add-docstrings-testing-and-models
Closed

Add docstrings to CliRunner and internal model classes#1671
mastash3ff wants to merge 1 commit intofastapi:masterfrom
mastash3ff:add-docstrings-testing-and-models

Conversation

@mastash3ff
Copy link
Copy Markdown

Summary

  • Add class and method docstrings to typer.testing.CliRunner and CliRunner.invoke, which are part of the public testing API but were previously undocumented. Includes a usage example and parameter descriptions.
  • Add class-level docstrings to internal model classes in models.py: CommandInfo, TyperInfo, ParameterInfo, OptionInfo, ArgumentInfo, ParamMeta, and DeveloperExceptionConfig.

No logic, behavior, or test changes. Docstring style matches the existing conventions in the codebase (Markdown formatting with example blocks).

Test plan

  • ruff check passes on both changed files
  • ruff format --check confirms no formatting issues
  • mypy passes on both changed files

Add class and method docstrings to the testing.CliRunner and
CliRunner.invoke, which are part of the public testing API but were
previously undocumented.

Also add class-level docstrings to the internal model classes in
models.py: CommandInfo, TyperInfo, ParameterInfo, OptionInfo,
ArgumentInfo, ParamMeta, and DeveloperExceptionConfig.
@mastash3ff
Copy link
Copy Markdown
Author

Closing — this PR was opened by an automated contribution agent that has been disabled. Apologies for the noise.

@mastash3ff mastash3ff closed this Apr 1, 2026
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.

2 participants