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
{{ message }}
Repository navigation
MyPy reports false error when using Concatenate with ParamSpec #14069
I searched this GitHub for similar issues and everything I see seems to imply that PEP 612 is fully supported (older issues that reported bugs were closed).
ParamSpec and Concatenate add many new considerations and edge cases for a type checker. It took me a long time to work out all of the issues in pyright's PEP 612 implementation, and every time a bug was reported I augmented our test suite. At this point, pyright's PEP 612 tests are pretty comprehensive. Mypy maintainers are welcome to leverage these tests if you find them helpful. They are located in this directory, and the individual files are named paramSpec*.py.
Closing this issue as it is redundant with #11855. I checked out the working branch from #14159 and confirmed it works successfully on the sample code in this PR.
Activity
erictraut commentedon Nov 11, 2022
ParamSpecandConcatenateadd many new considerations and edge cases for a type checker. It took me a long time to work out all of the issues in pyright's PEP 612 implementation, and every time a bug was reported I augmented our test suite. At this point, pyright's PEP 612 tests are pretty comprehensive. Mypy maintainers are welcome to leverage these tests if you find them helpful. They are located in this directory, and the individual files are namedparamSpec*.py.gandhis1 commentedon Nov 17, 2022
This is likely related to #11855
gandhis1 commentedon Nov 21, 2022
Closing this issue as it is redundant with #11855. I checked out the working branch from #14159 and confirmed it works successfully on the sample code in this PR.