pyerrors icon indicating copy to clipboard operation
pyerrors copied to clipboard

Missing return statement in _import_array()

Open jkuhl-uni opened this issue 2 months ago • 1 comments

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?

jkuhl-uni avatar Nov 03 '25 17:11 jkuhl-uni

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.

s-kuberski avatar Nov 03 '25 17:11 s-kuberski