Return type not showing on Intellisense
See original GitHub issueFrom @alchermd on September 23, 2017 13:38
Environment data
VS Code version: 1.16.1 Python Extension version: 0.7.0 Python Version: 3.5 OS and version: Linux Mint 18.2
Actual behavior
The -> str
part is not shown as defined in the function prototype baz
at module bar
.
Expected behavior
Shouldn’t it work the same way as above? Or I’m missing something obvious about type hinting? 😄
Copied from original issue: DonJayamanne/pythonVSCode#1234
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Typescript intellisense isn't working on mapped return type
I'm trying to write an event bus function that will return a few fixed helper functions such as get , set and sub...
Read more >Intellisense incorrectly types the return value of 'then' in ...
If I type the following code in a .ts file, Intellisense will incorrectly suggest that the return type of 'b' is 'Promise<number>' where...
Read more >JavaScript IntelliSense - Visual Studio - Microsoft Learn
For a function, the return type can be inferred from the return statements. For function parameters, there is currently no inference, but there ......
Read more >Two ways you can take advantage of types in JavaScript ...
The intellisense for the baz variable will be based on MyType 's type information. Function parameters and return values. Another scenario where ...
Read more >Code completion | IntelliJ IDEA Documentation - JetBrains
For automatic completion enable the Show suggestions as you type option ... However, IntelliJ IDEA does not recognize the structure of such ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brettcannon the prompt to switch from Jedi to the MS Python server showed up for me a day or two ago and since then it does appear. Thanks!
Closing as this is an upstream issue which we don’t have direct control or influence over.