I found the following lines in the scikit-learn package:
if is_sparse: problem = csr_set_problem( (
Take a look at Cython documentation, about types.
Additionally you could note that the file extension is .pyx and on the top of the file there are cimport statements.
.pyx
cimport