Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mypy fails in the CI with Python 3.10 #16

Closed
dalonsoa opened this issue Oct 17, 2022 · 3 comments · Fixed by #21
Closed

mypy fails in the CI with Python 3.10 #16

dalonsoa opened this issue Oct 17, 2022 · 3 comments · Fixed by #21
Labels
bug Something isn't working Tests Tests and CI-related issues

Comments

@dalonsoa
Copy link
Collaborator

Odd error when running mypy in the CI system with Python 3.10 - for the three platforms. Might it be a glitch?

=================================== FAILURES ===================================
_________________________________ test session _________________________________
mypy exited with status 2.

---------- coverage: platform darwin, python 3.10.7-final-0 ----------
Coverage HTML written to dir reports/coverage/html
Coverage XML written to file reports/coverage/coverage.xml

===================================== mypy =====================================
/Users/runner/Library/Caches/pypoetry/virtualenvs/pycsvy-NphvK76O-py3.10/lib/python3.10/site-packages/numpy/__init__.pyi:6[42](https://github.com/ImperialCollegeLondon/pycsvy/actions/runs/3268256575/jobs/5374463686#step:6:43): error: Positional-only parameters are only supported in Python 3.8 and greater
Found 1 error in 1 file (errors prevented further checking)
=========================== short test summary info ============================
FAILED csvy/__init__.py::mypy-status
======================== 1 failed, 25 passed in 17.13s =========================
Error: Process completed with exit code 1.
@dalonsoa dalonsoa added bug Something isn't working Tests Tests and CI-related issues labels Oct 17, 2022
@dalonsoa dalonsoa changed the title mypy fails in he CI with Python 3.10 mypy fails in the CI with Python 3.10 Oct 17, 2022
@dalonsoa
Copy link
Collaborator Author

@all-contributors please add @dalonsoa for infra, ideas, maintenance, test, bug and code

@allcontributors
Copy link
Contributor

@dalonsoa

I've put up a pull request to add @dalonsoa! 🎉

@AdrianDAlessandro
Copy link
Contributor

Appears to be a bug in mypy and was fixed in version 0.981

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working Tests Tests and CI-related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants