How to annotate module types #836
Unanswered
bryanforbes
asked this question in
Q&A
Replies: 2 comments 8 replies
-
|
When parsing the code, |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Is it still (3 years later) so difficult to add a way completion of module names? It's possible for |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
I have a function similar to this:
Annotating
moduleNameandstatusis simple enough, however annotatingmod, the return type, andthingseem to be much harder:Let's look at the two variables:
mod, if the value ofmoduleNamewas known, it could be annotated as---@module 'valueOfModuleName'. Is there a way to dynamically pass a value to@moduletoday?thing, I don't see a way to annotate a variable as a@moduleor another type, which would allow me to ignore the dynamic@moduleformodand set the return value ofreqtoany.For the return type, I don't see a way to do any of these:
@module@moduleor another value@modulebased on some computed value (as pointed out above)Perhaps I'm just missing how to do all of this, so any help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions