-
Notifications
You must be signed in to change notification settings - Fork 765
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
Python DASK syntax error #4801
Comments
Dask is a "py.typed" library which means it contains inline type information. When a library is marked "py.typed", Pyright (the type checker that underlies Pylance) applies certain rules to determine whether specific symbols are intended to be visible from a module. These rules are documented here. The module If you believe that As a workaround, you can access the |
Thank you for the clarification and workaround @debonte. dask.dataframe.io.csv is working fine now. Thanks again :) |
I’m pretty sure this isn’t a thing outside of PyRight/PyLance’s codebase. Re-exports are canonically done via If this pattern is defined anywhere in a |
This is documented in the Python typing spec here. All compliant type checkers and static analysis tools follow these rules for re-exports. |
I had no idea! Good to know, sorry for doubting you haha |
Type: Bug
Hi
installed python Dask library and running in Python version 3.10.11 in VS code.
But when I use the below code it shows an syntax error in "Problems" tab. But when I run the code it's working fine. So, am not able to use auto fill option when I use DASK.
Below is the python code:
Below is the syntax error shows in "Problems" tab in VS code editor.
"read_csv" is not exported from module "dask"
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (22)
A/B Experiments
The text was updated successfully, but these errors were encountered: