Skip to content

Conversation

@Robbie-Palmer
Copy link
Contributor

Summary

  • Fix with_timeout docstring to say "timeout configuration" instead of "in seconds" since the method accepts an httpx.Timeout object, not a numeric value
  • Fix set_async_httpx_client docstring to include missing verb "set"

Changes

  • Updated openapi_python_client/templates/client.py.jinja:93 to correct the with_timeout description
  • Updated openapi_python_client/templates/client.py.jinja:136 to fix the grammatical error in set_async_httpx_client
  • Regenerated all golden records to reflect template changes

Test plan

  • Regenerated golden records with pdm regen
  • Verified all generated client.py files now have correct docstrings

These changes improve the accuracy of the generated client documentation and fix grammatical errors.

- Fix with_timeout docstring to say "timeout configuration" instead of "in seconds"
  since the method accepts an httpx.Timeout object, not a numeric value
- Fix set_async_httpx_client docstring to include missing verb "set"

These changes improve the accuracy of the generated client documentation.
Copy link
Collaborator

@dbanty dbanty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dbanty dbanty added this pull request to the merge queue Oct 31, 2025
Merged via the queue into openapi-generators:main with commit c3dcb03 Oct 31, 2025
22 checks passed
@knope-bot knope-bot bot mentioned this pull request Oct 31, 2025
@Robbie-Palmer Robbie-Palmer deleted the fix/docstring-typos branch October 31, 2025 16:20
github-merge-queue bot pushed a commit that referenced this pull request Nov 3, 2025
> [!IMPORTANT]
> Merging this pull request will create this release

## Fixes

- Remove non-existent CHANGELOG.md references from UV and Poetry
templates (#1344)
- Initialize optional lists as UNSET, not [] (#1346)
- Correct docstring typos in client template (#1347)
- Replace bare except blocks with specific exception types (#1348)

### Update `uv_build` to 0.9

#1352 by @johnthagen

`uv` has been in the `0.9.x` release cycle for a while, so update
templates to use the corresponding `uv_build` range.

Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
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