Commit 09cbf492 authored by Matus Valo's avatar Matus Valo Committed by GitHub

Fix pure Python example in clibraries.rst (GH-4432)

parent cfb8879c
......@@ -585,7 +585,7 @@ and check if the queue really is empty or not:
@cython.cfunc
@cython.exceptval(-1, check=True)
def int peek(self):
def peek(self) -> cython.int:
value: cython.int = cython.cast(cython.Py_ssize_t, cqueue.queue_peek_head(self._c_queue))
if value == 0:
# this may mean that the queue is empty, or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment