Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Nov 2, 2023 · 2 comments
Open

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

ghost opened this issue Nov 2, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 2, 2023

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

@martindurant
Copy link
Member

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

@MarcSkovMadsen
Copy link

MarcSkovMadsen commented Jul 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants