pyerrors
pyerrors copied to clipboard
Missing return statement in _import_array()
Hey,
I was looking through #251 again and noticed that Mypy tells me pyerrors.input.dobs._import_array() does not seem to have an output, which it should have, given the rest of the file. I am not familiar with this input function, so I cannot fix this quickly.
Can someone have a look at this?
Hi,
as I understand it, the function should always have an output, except for the case where it raises an Exception. However, the output can depend on the special case, so the function does not always return a numpy array, it can also return a list of things. Maybe a bit ugly but since it is an internal I/O helper function, I did not see a problem.