Closed AlokSwaminathan closed 1 month ago
This is a duplicate of https://github.com/microsoft/pyright/issues/8228, which was fixed in Pyright 1.1.370. We haven't shipped a Pylance build that incorporates this fix yet. However, the first attempt at fixing this issue was in Pyright 1.1.369 which shipped in Pylance 2024.7.100. I was able to repro the bug using pwntools
in Pylance 2024.7.1, but not in Pylance 2024.7.100. So perhaps your scenario is covered by that initial fix attempt.
Can you please try switching to prerelease?
I was facing the same issue and can confirm that switching to pre-release setting in the PyLance extension fixed the issue.
Environment data
Code Snippet
Version 4.12.0 of pwntools
Expected behavior
No internal error
Actual behavior
Throws error
Logs