You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by a bug in the decopatch stubs. They're using a try/except block in the import of ParamSpec. Stub files are not executed, and they're not allowed to use dynamic code like try/except blocks.
An older bug in pyright happened to mask the effects of the bug in the stubs, which explains why this apparently worked for you prior to pyright 1.1.364.
The correct fix here is to address the bug in the stubs. I recommend that you file a bug report with the maintainers of the decopatch stubs.
Describe the bug
After updating to pyright@1.1.364 i encounter following error, but only for python 3.9.
Code or Screenshots
Note incorrect types for
fixture
.pytest-cases
are usingdecopatch.function_decorator
, it has types defined in.pyi
file, but they're ignored.Larger version of python is not affected and produce correct result:
The text was updated successfully, but these errors were encountered: