Skip to content
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

Test failures using Python 3.11 and Mypy 0.981 #105

Closed
Delgan opened this issue Oct 1, 2022 · 4 comments
Closed

Test failures using Python 3.11 and Mypy 0.981 #105

Delgan opened this issue Oct 1, 2022 · 4 comments

Comments

@Delgan
Copy link
Contributor

Delgan commented Oct 1, 2022

Hi!

Tests are failing on Python 3.11 due to a Mypy error and I'm not sure why. 🤔

I forked pytest-mypy-plugins and added 3.11-dev Python version to CI tests: Delgan@27f9037
You can see the failing test here: https://github.com/Delgan/pytest-mypy-plugins/actions/runs/3166219555/jobs/5155788328

E     ../../opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib/python3.11/site-packages/mypy/typeshed/stdlib/builtins.pyi:1865: error: Overloaded function signatures 1 and 2 overlap with incompatible return types (diff)
E     ../../opt/hostedtoolcache/Python/3.11.0-rc.2/x64/lib/python3.11/site-packages/mypy/typeshed/stdlib/builtins.pyi:1885: error: Overloaded function signatures 1 and 2 overlap with incompatible return types (diff)

When I manually run mypy on the code base no error is reported, so I'm a bit confused about why it's failing when tests are ran through pytest and this plugin.

@sobolevn
Copy link
Member

sobolevn commented Oct 2, 2022

3.11 is not supported by mypy yet.

@Delgan
Copy link
Contributor Author

Delgan commented Oct 2, 2022

Oh, I see. That could explain the issue, indeed.

Sorry for the noise, then. Feel free to close the ticket.
It could be reconsidered when python/mypy#12840 is completed, I guess.

@sobolevn
Copy link
Member

sobolevn commented Oct 2, 2022

Let's leave it open, we would need to inlcude tests for 3.11

Thanks for the report! 😄

@ben9923
Copy link

ben9923 commented Oct 8, 2022

It appears to be resolved with mypy==0.982 :)

@sobolevn sobolevn closed this as completed Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants