Is there a way to get hinting running in VSCode? W...
# ask-metaflow
f
Is there a way to get hinting running in VSCode? When I import for example
from metaflow import project
, the pylint always reports pylint: disable = no-name-in-module (and when I look into the files I cannot see the symbols myself). Is there a way to fix that? Hinting by the VSCode would greatly enhance productivity.
1
d
hello — it’s something we have been looking at (basically including .pyi files or something like that) but no ETA on it yet. I think I have a working prototype somewhere. I’ll try to get back to it soon (I agree, it would be very useful).
1
f
Thanks for your answer! That's great! I'm just curious: why is it so difficult? I created some packages myself and I didn't really need to do anything for it to work.
d
it’s not per-say horrendously difficult but there are some small complications, two of the biggest ones: • a lot of the decorators in Metaflow are not actually defined as simple functions that would autocomplete easily but rather classes that are then turned into a function when metaflow starts up (see here: https://github.com/Netflix/metaflow/blob/master/metaflow/decorators.py#L567) so it requires a bit more work to properly get those to autocomplete as well as the arguments for those (it’s not a typical docstring) • there is the added fun of metaflow extensions as well something which I am keenly interested in since we use it heavily 🙂
🙏 1
i do have something working somewhere (or at least it worked at some point 🙂 ). I just have to re-hydrate it and see about properly packaging it. I had looked at it a few months back but didn’t get a chance to finalize it. Maybe this is motivation to get it working again. You are not the first to ask 🙂