| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR improves the generated API reference by adding concise, one-line docstrings to several root-level helper modules so Sphinx can render meaningful descriptions for commonly used helpers and constants.
Changes:
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file| File | Description |
|---|---|
| tableauserverclient/namespace.py | Adds docstrings for the namespace helper error and class/method. |
| tableauserverclient/filesys_helpers.py | Adds docstrings for filename/path helpers and file inspection utilities. |
| tableauserverclient/exponential_backoff.py | Adds docstrings for the backoff timer class and its sleep behavior. |
| tableauserverclient/datetime_helpers.py | Adds docstrings clarifying timestamp/UTC parsing and formatting helpers. |
| tableauserverclient/config.py | Adds docstrings documenting env-var-driven runtime configuration properties. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
Two one-word docstring nits from Copilot: - CHUNK_SIZE_MB docstring now names the default (50). Previously it cited the env var without saying what a caller gets if it isn't set. - get_file_type's docstring now mentions it raises ValueError when no magic bytes match, instead of only describing the happy path.
Two one-word nits: - config.py: PAGE_SIZE docstring names the default (100), matching the sibling docstrings on FILESIZE_LIMIT_MB and CHUNK_SIZE_MB. - namespace.py: detect() docstring now mentions it raises UnknownNamespaceError on unrecognized namespaces. Matches the earlier fix on get_file_type's ValueError.
|
docs only change, merging with AI review only |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Motivation
The api-ref migration audit's needs_docstring bucket includes a few
helper modules that live outside server/endpoint/ and models/. They
each ship a small number of small functions, and none of them had
docstrings. Missing docstrings mean Sphinx has nothing to render on the
generated page under #1832, so users looking up parse_datetime or the
exponential-backoff constants find bare signatures with no explanation.
Behavior change
Docs only. No runtime code changes.
Four commits, one file each:
format_datetime, and the UTC tzinfo class
helper and the config module's public constants
Each docstring states what the function does in one sentence. Nothing
prescriptive — these helpers are stable and the docstrings are meant to
be captured by Sphinx, not to change behavior.
Test plan
will render the new docstrings.
🤖 Generated with Claude Code