streamz icon indicating copy to clipboard operation
streamz copied to clipboard

streamz's typing system can't work properly in vscode

Open ghost opened this issue 1 year ago • 2 comments

summary

streamz's typing system can't work properly in vscode, severely reduceing user experience.

vscode version

Version: 1.83.1 (system setup) Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc Date: 2023-10-10T23:48:05.904Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22621

streamz version

name : streamz version : 0.6.4 description : Streams

dependencies

  • six *
  • toolz *
  • tornado *
  • zict *

python version

3.10.2

evidence

image image

ghost avatar Nov 02 '23 02:11 ghost

Sorry, I have no idea of how to inform VSCode of what's going on.

martindurant avatar Nov 03 '23 00:11 martindurant

I believe the challenge is that map is registered dynamically via @Stream.register_api().

I've sometimes had success asking for help in the Pylance or Pyright github forums for questions like these. Those two tools are what typically powers VS Code.

But basically, if mypy can understand that .map is there. Then Pylance/ Pyright can too.

MarcSkovMadsen avatar Jul 15 '24 15:07 MarcSkovMadsen