Skip to content

Conversation

@oleksandr-pavlyk
Copy link
Collaborator

This PR builds on top of #290. Hence, it should be merged after #290 has been merged.

This PR moves doc-strings for Python objects exposed in cuda.bench namespace from __init__.pyi to implementation file, making doc-strings interactively available to the user. For example, help(cuda.bench.State) would not include doc-strings of the class itself as well as of its methods.

Closes #291

@oleksandr-pavlyk oleksandr-pavlyk changed the title Add docstrings Equip python functions, classes, methods and exceptions with docstrings Dec 9, 2025
@oleksandr-pavlyk oleksandr-pavlyk marked this pull request as ready for review December 9, 2025 21:00
@oleksandr-pavlyk oleksandr-pavlyk self-assigned this Jan 6, 2026
@github-project-automation github-project-automation bot moved this to Todo in CCCL Jan 6, 2026
@oleksandr-pavlyk
Copy link
Collaborator Author

@shwina Since #290 has been merged, rebased this PR on top of main. Please take another look.

@oleksandr-pavlyk
Copy link
Collaborator Author

@shwina @NaderAlAwar I resolved merge conflicts introduced recently in wheel publishing PR.

Please take a look to make sure I did not inadvertently introduce a bug. Thanks!

@NaderAlAwar
Copy link
Collaborator

The conflict seems to have been in py_nvbench.cpp, I don't see any issue with the changes.

Added tests that docstrings exist and are not empty.

This closes NVIDIA#291
Use py::gil_safe_call_once_and_store facility pybind11 provides.
@oleksandr-pavlyk oleksandr-pavlyk merged commit 867d5d4 into NVIDIA:main Feb 3, 2026
49 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in CCCL Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Python entities of Python API to NVBench should have docstrings

2 participants