pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Pyrefly cannot locate dependencies with only `.pyc` bytecode

Open tinkei opened this issue 7 months ago • 0 comments

Describe the Bug

One of our vendors supply their Python packages as platform-specific wheels. Once installed, everything inside are .pyc files. In IDEs it is easy to inspect the content of these .pyc installed packages, and did not exhibit any error message prior to installing the pyrefly extension. Now with pyrefly, VS Code is showing red squiggly lines for all these .pyc imports, and is therefore unable to infer types. While it is not permitted to share propriety code, I suppose it would be easily reproducible if .pyc is simply not supported at all.

OS: Windows 11 Python: 3.11 Pyrefly: 0.17.1

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

tinkei avatar May 31 '25 14:05 tinkei