diff options
| author | Matus Valo <matusvalo@users.noreply.github.com> | 2022-08-02 22:45:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-02 21:45:08 +0100 |
| commit | f51d258e74ea0ab073507f05e5f1550cc457c8d7 (patch) | |
| tree | 363f328f328735eb15e3837d1558dd23bc000e2c | |
| parent | bf6362634eecec89f8907e79d7bc68bed0267838 (diff) | |
| download | cython-f51d258e74ea0ab073507f05e5f1550cc457c8d7.tar.gz | |
Use annotation for pointer in docs (#4942)
and remove note about bug
| -rw-r--r-- | docs/examples/tutorial/clibraries/queue.py | 2 | ||||
| -rw-r--r-- | docs/src/tutorial/clibraries.rst | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/docs/examples/tutorial/clibraries/queue.py b/docs/examples/tutorial/clibraries/queue.py index 45529fa94..e99b9b32c 100644 --- a/docs/examples/tutorial/clibraries/queue.py +++ b/docs/examples/tutorial/clibraries/queue.py @@ -2,7 +2,7 @@ from cython.cimports import cqueue @cython.cclass class Queue: - _c_queue = cython.declare(cython.pointer(cqueue.Queue)) + _c_queue: cython.pointer(cqueue.Queue) def __cinit__(self): self._c_queue = cqueue.queue_new() diff --git a/docs/src/tutorial/clibraries.rst b/docs/src/tutorial/clibraries.rst index ddc02f443..5b8c545b8 100644 --- a/docs/src/tutorial/clibraries.rst +++ b/docs/src/tutorial/clibraries.rst @@ -125,9 +125,6 @@ Here is a first start for the Queue class: .. literalinclude:: ../../examples/tutorial/clibraries/queue.py :caption: queue.py - .. note:: Currently, Cython contains a bug not allowing using - annotations with types containing pointers (GitHub issue :issue:`4293`). - .. group-tab:: Cython .. literalinclude:: ../../examples/tutorial/clibraries/queue.pyx |
