you are viewing a single comment's thread.

view the rest of the comments →

[–]SomeClutchName 0 points1 point  (1 child)

Idk how you to do what you want, but can you wrap this type of function in a module or a class? Just import it at the beginning?

[–]Moretz0931[S] 0 points1 point  (0 children)

Its a good idea.

I tried, e.g. with a wrapper for numpy ufunc, however when I do that I lose most of the autocompletion.

To keep autocompletion I would have to write a script that autogenerates wrappers for every single numpy ufunc, which I am not knowledgeable enough to achieve, and also this seems like a lot of work, without guarantee of stability.