Repository navigation
Commit f9af375
salehMomtaz
fix(lsp): point pyright at the project venv; drop stale operators.downloader fallback
opencode's pyright langserver never resolved the project venv
(anomalyco/opencode#6131 — it sets a flat initialization pythonPath, which
pyright ignores), so every third-party import (pyrogram/kurigram,
instagrapi, dotenv, playwright) surfaced as a false 'could not be resolved'
error. pyrightconfig.json now declares venvPath/venv + pythonVersion
explicitly and demotes the pyrogram-stub false-positive families
(Optional-member/argument/attribute access etc.) to warnings; import
resolution and undefined names stay as errors. Repo-wide pyright: 0 errors.
Also removes the dead 'from operators.downloader import ...' fallback in
modules/youtube/handlers.py (module has not existed since the
utils/downloader/ split; the primary import right above it is used).1 parent 4cf6225 commit f9af375
2 files changed
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 151 | + | |
156 | 152 | | |
157 | 153 | | |
158 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments