Skip to content

style(viewer): add docstrings#267

Merged
ktro2828 merged 5 commits into
mainfrom
style/viewer/docstrings
Feb 10, 2026
Merged

style(viewer): add docstrings#267
ktro2828 merged 5 commits into
mainfrom
style/viewer/docstrings

Conversation

@ktro2828
Copy link
Copy Markdown
Collaborator

What

This pull request primarily adds comprehensive docstrings to several classes and methods across the t4_devkit codebase, improving code readability and maintainability. The most important changes are grouped below by theme.

Documentation improvements:

  • Added docstrings to the RenderingMode enum and its members in rendering.py, clarifying its purpose.
  • Added docstrings to various methods in ViewerBuilder (with_spatial3d, with_spatial2d, with_labels, with_streetmap, build) to describe their functionality, arguments, and return values. [1] [2]
  • Added docstrings to helper methods in rendering.py (_has_lidarseg, _find_lidarseg_file) to explain their behavior.
  • Added docstring to the pointcloud_color function in color.py describing its return value.
  • Added a class-level docstring to ViewerConfig in config.py detailing its attributes.

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@ktro2828 ktro2828 requested a review from Copilot February 10, 2026 22:42
@github-actions github-actions Bot added the refactor Refactoring code or increasing performance label Feb 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 10, 2026

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
4215 3491 83% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/helper/rendering.py 18% 🔴
t4_devkit/viewer/builder.py 87% 🟢
t4_devkit/viewer/color.py 85% 🟢
t4_devkit/viewer/config.py 98% 🟢
TOTAL 72% 🔴

updated for commit: af4dd9d by action🐍

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds/expands docstrings across the viewer and rendering helpers to improve API clarity and maintainability.

Changes:

  • Added class/function/method docstrings across viewer config, builder, and rendering helpers.
  • Documented return value for pointcloud_color.
  • Added a short description to RenderingMode.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
t4_devkit/viewer/config.py Adds a class-level docstring describing ViewerConfig attributes.
t4_devkit/viewer/color.py Documents the return shape/type for pointcloud_color.
t4_devkit/viewer/builder.py Adds docstrings to builder methods describing args/returns.
t4_devkit/helper/rendering.py Adds docstrings for RenderingMode and lidarseg helper methods.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread t4_devkit/viewer/builder.py Outdated
Comment thread t4_devkit/viewer/builder.py Outdated
Comment thread t4_devkit/viewer/config.py Outdated
Comment thread t4_devkit/viewer/config.py Outdated
ktro2828 and others added 4 commits February 11, 2026 07:43
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ktro2828 ktro2828 self-assigned this Feb 10, 2026
@ktro2828 ktro2828 merged commit e1f01c9 into main Feb 10, 2026
4 of 5 checks passed
@ktro2828 ktro2828 deleted the style/viewer/docstrings branch February 10, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring code or increasing performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants