-
Notifications
You must be signed in to change notification settings - Fork 769
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
Function is not accessed (although it IS accessed) #5872
Comments
Pyright (the type checker that underlies pylance) is working as intended here. These symbols are not referenced anywhere in the file. You appear to have enabled the If you don't want pyright to generate an error for unreferenced imports, you can choose to disable the |
@erictraut, thank you very much for your answer. Yes, you are right: they are not referenced in the file.
from other parts of the code, and due to this import of functions that is surrounded by red rectangle on my screenshot, they are imported fine. However, it looks like Pylance doesn't recognize it to be in the |
As Eric mentioned above, if you want to re-export these symbols from this module (and you want a static type checker to understand that that is your intention) you'll either need to include them in an I've copied that part of his response here:
|
Type: Bug
Please, look at the screenshot below: the functions are accessed.
If we do "go to definition", it will work.
The project on which this is reproducible is available here
https://github.com/ibobak/spark_framework
Extension version: 2024.5.1
VS Code version: Code 1.89.0 (b58957e67ee1e712cebf466b995adf4c5307b2bd, 2024-05-01T02:08:25.066Z)
OS version: Linux x64 6.4.6-060406-generic
Modes:
Remote OS version: Linux x64 6.5.0-27-generic
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: