Commit b32c334a authored by Julian Gethmann's avatar Julian Gethmann

WIP: Add mypy tag to pure_py3.py

* Add `mypy` as a tag to the `pure_py3.py` test module.
* Add type hint for MyStruct2 in pure_py3 test, because MyStruct2 is of type
  `cython.typedef` instead of `cython.StructType`, so one needs to explicitly
  provide its type.
parent 77c83128
# mode: run
# tag: annotation_typing, pure3.0
# tag: annotation_typing, pure3.0, mypy
import cython
......@@ -7,7 +7,7 @@ is_compiled = cython.compiled
MyUnion = cython.union(n=cython.int, x=cython.double)
MyStruct = cython.struct(is_integral=cython.bint, data=MyUnion)
MyStruct2 = cython.typedef(MyStruct[2])
MyStruct2 = cython.typedef(MyStruct[2]) # type: cython.StructType
@cython.ccall # cpdef => C return type
......
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