Skip to content

Commit

Permalink
Update handle docstring (#1103)
Browse files Browse the repository at this point in the history
Authors:
  - Dante Gama Dessavre (https://github.com/dantegd)

Approvers:
  - Ben Frederickson (https://github.com/benfred)

URL: #1103
  • Loading branch information
dantegd authored Dec 15, 2022
1 parent 51c45b0 commit 81650cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/pylibraft/pylibraft/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@
from .cuda import Stream
from .device_ndarray import device_ndarray
from .handle import Handle

__all__ = ["Handle", "Stream"]
2 changes: 1 addition & 1 deletion python/pylibraft/pylibraft/common/handle.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cdef class Handle:
Examples
--------
>>> from raft.common import Stream, Handle
>>> from pylibraft.common import Stream, Handle
>>> stream = Stream()
>>> handle = Handle(stream)
>>>
Expand Down
1 change: 1 addition & 0 deletions python/pylibraft/pylibraft/test/test_doctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def _find_doctests_in_obj(obj, finder=None, criteria=None):
# __all__) we are explicitly adding all the submodules we want to run
# doctests for here
DOC_STRINGS = list(_find_doctests_in_obj(pylibraft.cluster))
DOC_STRINGS.extend(_find_doctests_in_obj(pylibraft.common))
DOC_STRINGS.extend(_find_doctests_in_obj(pylibraft.distance))
DOC_STRINGS.extend(_find_doctests_in_obj(pylibraft.neighbors))
DOC_STRINGS.extend(_find_doctests_in_obj(pylibraft.neighbors.ivf_pq))
Expand Down

0 comments on commit 81650cd

Please sign in to comment.