I think the modern what is to use memoryviews:

````python
DTYPE_t[:,:] dofs not None
````
This produces slightly better code.