Skip to content

Auto insert raises block, fix Bot kwargs insertion regression#5241

Open
harshil21 wants to merge 1 commit into
doc-fixesfrom
auto-doc-raises
Open

Auto insert raises block, fix Bot kwargs insertion regression#5241
harshil21 wants to merge 1 commit into
doc-fixesfrom
auto-doc-raises

Conversation

@harshil21
Copy link
Copy Markdown
Member

@harshil21 harshil21 commented May 20, 2026

This PR does two things:

  1. Fixes a regression from Fixing failing sphinx builds #5124 and Update Ruff to v0.15.0 #5122 which causes no Shortcut admonitions to generate, and no keyword arguments for the bot methods to be inserted in the documentation.
  2. Expands the insertion logic to now also automatically add the Raises: block for bot methods which have a standard Raises message. Thus, the Raises: block in set_game_score is untouched, for example.

This helps reduce the LoC and makes implementing new API updates just a little bit more faster.

  • Manually check if doc built properly as intended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ documentation affected functionality: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant