New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stubtest whines about Concatenate given as Callable argument #12825
Comments
Thanks for the report, but I can't repro. Are you sure you're using mypy 0.950? Consider using I do get:
where the first error is something stubtest could improve. The error you're getting is actually not stubtest specific, it's from the underlying mypy build. mypy itself only gained support for Concatenate in 0.950. |
Thanks for trying my reproducer @hauntsaninja. As you, I can't repro today. What I think happened is that I had a mypy 0.950 in the venv (clearly remember Maybe adding a |
That's a good suggestion! And thanks for reporting, despite the lack of repro, a number of things have come from this:
|
Suggested in python#12825
Suggested in #12825 Co-authored-by: hauntsaninja <>
With the concatenate example from the typing doc, which works with mypy 0.950, if I split it to a file and a stub, stubtest starts to compain about Concatenate being used as a Callable argument:
totest.py
:totest.pyi
:stubtest run:
$ stubtest totest error: not checking stubs due to mypy build errors: totest.pyi:8: error: The first argument to Callable must be a list of types or "..."
The text was updated successfully, but these errors were encountered: