question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Return type not showing on Intellisense

See original GitHub issue

From @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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
austinbutlercommented, Feb 22, 2019

@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!

0reactions
brettcannoncommented, Jul 29, 2019

Closing as this is an upstream issue which we don’t have direct control or influence over.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found