Commit 68742d85 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #2373 from gabrieldemarmiesse/test_pure_9

Adding tests for "pure python mode" part 9
parents 44b041c8 4077385b
import cython
def func(foo: dict, bar: cython.int) -> tuple:
foo["hello world"] = 3 + bar
return foo, 5
......@@ -158,10 +158,7 @@ Static typing
following example. To avoid conflicts with other kinds of annotation
usages, this can be disabled with the directive ``annotation_typing=False``.
::
def func(a_pydict: dict, a_cint: cython.int) -> tuple:
...
.. literalinclude:: ../../examples/tutorial/pure/annotations.py
This can be combined with the ``@cython.exceptval()`` decorator for non-Python
return types::
......
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