You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several devs left comments during bug bash about VSCode not doing auto-imports, needing to re-load to get the docs to show up, etc. Experiment to see if there are things we need to add, or if there are specific VSCode settings we should recommend that users enable, etc.
The text was updated successfully, but these errors were encountered:
The language server used by default is pylance. This uses the Microsoft type checker pyright.
In VS Code, pylance by default only indexes top level third-party packages for auto-import, analysis, and autocompletion. This means by default no help from from momento.responses import ... because those are second level names.
The private import rule used by pylance (mentioned in (3)) is the cause of type inference for client object not working with async with - determine root cause #285. Because pylance interpeted SimpleCacheClientAsync as a private name, I did not get type hints in the async with clause. I fixed the private import locally and observed I got the type hints.
Several devs left comments during bug bash about VSCode not doing auto-imports, needing to re-load to get the docs to show up, etc. Experiment to see if there are things we need to add, or if there are specific VSCode settings we should recommend that users enable, etc.
The text was updated successfully, but these errors were encountered: