inducer / pyopencl

OpenCL integration for Python, plus shiny features
http://mathema.tician.de/software/pyopencl
Other
1.06k stars 241 forks source link

Add mypy to CI #639

Closed alexfikl closed 1 year ago

alexfikl commented 1 year ago

Was starting to add some types in #616 and friends, so thought we could check for it a bit too.

I had to re-order the shape handling a bit in Array.__init__ to convince mypy it's a tuple at the end of the day. Let me know if it still looks ok.

alexfikl commented 1 year ago

Running on Gitlab as well at https://gitlab.tiker.net/fikl2/pyopencl/-/pipelines/350236

inducer commented 1 year ago

Thanks!