prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [BUG] Annotated attributes of cclass are not supporting pointers
  <!--
  **PLEASE READ THIS FIRST:**
  - Do not use the bug and feature tracker for support requests. Use the `cython-users` mailing list instead.
  - Did you search for similar issues already? Please do, it helps to save us precious time that we otherwise could not invest into development.
  - Did you try the latest master branch or pre-release? It might already have what you want to report. Also see the [Changelog](https://github.com/cython/cython/blob/master/CHANGES.rst) regarding recent changes.
  -->
  
  **Describe the bug**
  The compilation is failing, when attribute of cclass is declared using annotated type containing pointer.
  
  **To Reproduce**
  Following code:
  ```python
  import cython
  
  @cython.cclass
  class Foo:
      a: cython.pointer(cython.int)
  
      def bar(self):
          self.a = cython.NULL
  ```
  fails during compilation with error:
  ```
  $ cython -3 test.py
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  @cython.cclass
  class Foo:
      a: cython.pointer(cython.int)
  
      def bar(self):
          self.a = cython.NULL
                        ^
  ------------------------------------------------------------
  
  test.py:8:23: Cannot convert 'void *' to Python object
  ```
  
  **Expected behavior**
  Compilation should be successfull.
  
  **Environment (please complete the following information):**
   - OS: Linux
   - Python version: Python 3.9.2
   - Cython version: master
  
  **Additional context**
  When `declare()` statement or `cython.p_int` type is used, compilation is successful:
  
  ```python
  import cython
  
  @cython.cclass
  class Foo:
      a = cython.declare(cython.pointer(cython.int))
  
      def bar(self):
          self.a = cython.NULL
  ```
  
  ```python
  import cython
  
  @cython.cclass
  class Foo:
      a: cython.p_int
  
      def bar(self):
          self.a = cython.NULL
  ```
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `docs/examples/tutorial/clibraries/queue.py`
  Content:
  ```
  1 from cython.cimports import cqueue
  2 
  3 @cython.cclass
  4 class Queue:
  5     _c_queue = cython.declare(cython.pointer(cqueue.Queue))
  6 
  7     def __cinit__(self):
  8         self._c_queue = cqueue.queue_new()
  9
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/docs/examples/tutorial/clibraries/queue.py b/docs/examples/tutorial/clibraries/queue.py
  --- a/docs/examples/tutorial/clibraries/queue.py
  +++ b/docs/examples/tutorial/clibraries/queue.py
  @@ -2,7 +2,7 @@
   
   @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()
  
verification_info: {"golden_diff": "diff --git a/docs/examples/tutorial/clibraries/queue.py b/docs/examples/tutorial/clibraries/queue.py\n--- a/docs/examples/tutorial/clibraries/queue.py\n+++ b/docs/examples/tutorial/clibraries/queue.py\n@@ -2,7 +2,7 @@\n \n @cython.cclass\n class Queue:\n-    _c_queue = cython.declare(cython.pointer(cqueue.Queue))\n+    _c_queue: cython.pointer(cqueue.Queue)\n \n     def __cinit__(self):\n         self._c_queue = cqueue.queue_new()\n", "issue": "[BUG] Annotated attributes of cclass are not supporting pointers\n<!--\r\n**PLEASE READ THIS FIRST:**\r\n- Do not use the bug and feature tracker for support requests. Use the `cython-users` mailing list instead.\r\n- Did you search for similar issues already? Please do, it helps to save us precious time that we otherwise could not invest into development.\r\n- Did you try the latest master branch or pre-release? It might already have what you want to report. Also see the [Changelog](https://github.com/cython/cython/blob/master/CHANGES.rst) regarding recent changes.\r\n-->\r\n\r\n**Describe the bug**\r\nThe compilation is failing, when attribute of cclass is declared using annotated type containing pointer.\r\n\r\n**To Reproduce**\r\nFollowing code:\r\n```python\r\nimport cython\r\n\r\n@cython.cclass\r\nclass Foo:\r\n    a: cython.pointer(cython.int)\r\n\r\n    def bar(self):\r\n        self.a = cython.NULL\r\n```\r\nfails during compilation with error:\r\n```\r\n$ cython -3 test.py\r\n\r\nError compiling Cython file:\r\n------------------------------------------------------------\r\n...\r\n@cython.cclass\r\nclass Foo:\r\n    a: cython.pointer(cython.int)\r\n\r\n    def bar(self):\r\n        self.a = cython.NULL\r\n                      ^\r\n------------------------------------------------------------\r\n\r\ntest.py:8:23: Cannot convert 'void *' to Python object\r\n```\r\n\r\n**Expected behavior**\r\nCompilation should be successfull.\r\n\r\n**Environment (please complete the following information):**\r\n - OS: Linux\r\n - Python version: Python 3.9.2\r\n - Cython version: master\r\n\r\n**Additional context**\r\nWhen `declare()` statement or `cython.p_int` type is used, compilation is successful:\r\n\r\n```python\r\nimport cython\r\n\r\n@cython.cclass\r\nclass Foo:\r\n    a = cython.declare(cython.pointer(cython.int))\r\n\r\n    def bar(self):\r\n        self.a = cython.NULL\r\n```\r\n\r\n```python\r\nimport cython\r\n\r\n@cython.cclass\r\nclass Foo:\r\n    a: cython.p_int\r\n\r\n    def bar(self):\r\n        self.a = cython.NULL\r\n```\r\n\n", "before_files": [{"content": "from cython.cimports import cqueue\n\n@cython.cclass\nclass Queue:\n    _c_queue = cython.declare(cython.pointer(cqueue.Queue))\n\n    def __cinit__(self):\n        self._c_queue = cqueue.queue_new()\n", "path": "docs/examples/tutorial/clibraries/queue.py"}], "after_files": [{"content": "from cython.cimports import cqueue\n\n@cython.cclass\nclass Queue:\n    _c_queue: cython.pointer(cqueue.Queue)\n\n    def __cinit__(self):\n        self._c_queue = cqueue.queue_new()\n", "path": "docs/examples/tutorial/clibraries/queue.py"}]}