summaryrefslogtreecommitdiff
path: root/docs/src/two-syntax-variants-used
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/two-syntax-variants-used')
-rw-r--r--docs/src/two-syntax-variants-used22
1 files changed, 12 insertions, 10 deletions
diff --git a/docs/src/two-syntax-variants-used b/docs/src/two-syntax-variants-used
index ef7b38903..4a9815345 100644
--- a/docs/src/two-syntax-variants-used
+++ b/docs/src/two-syntax-variants-used
@@ -1,13 +1,15 @@
-This page uses two different syntax variants: the Cython specific ``cdef`` syntax
-and static Cython type declarations in
-:ref:`pure Python code <pep484_type_annotations>`,
-following `PEP-484 <https://www.python.org/dev/peps/pep-0484/>`_ type hints
-and `PEP 526 <https://www.python.org/dev/peps/pep-0526/>`_ variable annotations.
-To make good use of the latter, including C data types, etc., you need
-the special ``cython`` module, which you can import with
+.. note::
-.. code-block:: python
+ This page uses two different syntax variants: the Cython specific ``cdef`` syntax
+ and static Cython type declarations in
+ :ref:`pure Python code <pep484_type_annotations>`,
+ following `PEP-484 <https://www.python.org/dev/peps/pep-0484/>`_ type hints
+ and `PEP 526 <https://www.python.org/dev/peps/pep-0526/>`_ variable annotations.
+ To make good use of the latter, including C data types, etc., you need
+ the special ``cython`` module, which you can import with
- import cython
+ .. code-block:: python
-in the Python module that you want to compile.
+ import cython
+
+ in the Python module that you want to compile.