Skip to content

Commit 2e315e2

Browse files
author
Diptorup Deb
committed
Fix warnings thrown during Sphinx generation.'
1 parent 7fecbd1 commit 2e315e2

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

docs/docfiles/urls.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.. __urls:
21

32
.. _buffer protocol: https://docs.python.org/3/c-api/buffer.html
43
.. _Data API: https://data-apis.github.io/array-api/latest/

docs/generate_rst.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,11 +527,17 @@ def _write_function_groups_summary(o, mod, groups):
527527
_write_line(output, ".. currentmodule:: " + module)
528528
_write_empty_line(output)
529529
_write_line(output, ".. automodule:: " + module)
530+
_write_empty_line(output)
530531
_write_submodules_summary_table(output, mod)
532+
_write_empty_line(output)
531533
_write_classes_summary_table(output, mod)
534+
_write_empty_line(output)
532535
_write_function_groups_summary(output, mod, _group_functions(mod))
536+
_write_empty_line(output)
533537
_write_enums_summary_table(output, mod)
538+
_write_empty_line(output)
534539
_write_exceptions_summary_table(output, mod)
540+
_write_empty_line(output)
535541
_write_include_urls(output)
536542

537543
return output.getvalue()

dpctl/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@
133133

134134

135135
def get_include():
136-
"""
137-
Return the directory that contains the dpctl *.h header files.
136+
r"""
137+
Return the directory that contains the dpctl \*.h header files.
138138
139139
Extension modules that need to be compiled against dpctl should use
140140
this function to locate the appropriate include directory.

dpctl/_sycl_event.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,15 @@ cdef class SyclEvent(_SyclEvent):
259259
**SyclEventRef**. The ownership of the pointer inside the capsule is
260260
passed to the caller, and pointer is deleted when the capsule goes out
261261
of scope.
262+
262263
Returns:
263264
:class:`pycapsule`: A capsule object storing a copy of the
264-
``cl::sycl::event`` pointer belonging to thus
265+
``cl::sycl::event`` pointer belonging to a
265266
:class:`dpctl.SyclEvent` instance.
266267
Raises:
267268
ValueError: If the ``DPCTLEvent_Copy`` fails to copy the
268269
``cl::sycl::event`` pointer.
270+
269271
"""
270272
cdef DPCTLSyclEventRef ERef = NULL
271273
ERef = DPCTLEvent_Copy(self._event_ref)

0 commit comments

Comments
 (0)