| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks Joren. |
Sorry, something went wrong.
|
Is this the change that causes mypy unreachable warnings in code like this match array.dtype:
case np.int:
...
case np.float:
...
? |
Sorry, something went wrong.
np.float and np.int do not exist, so that might be why |
Sorry, something went wrong.
In case you meant np.int_ and np.float64, then it could be related to one of these mypy issues:
|
Sorry, something went wrong.
|
Sorry, the actual code is: match data.dtype:
case np.uint16:
data = data.astype(np.int32)
case np.uint32 | np.uint64:
data = data.astype(np.int64)
This works in mypy with numpy <2.2, but breaks in numpy 2.3. But the issue is caused by array.dtype no longer being Any -- sorry. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.