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

Mypy test failure #2

Closed
matthewgilbert opened this issue Aug 12, 2021 · 0 comments
Closed

Mypy test failure #2

matthewgilbert opened this issue Aug 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@matthewgilbert
Copy link
Owner

For python 3.9 it appears a new package is necessary for mypy typing

Run pytest
============================= test session starts ==============================
platform linux -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/runner/work/blp/blp, configfile: pyproject.toml, testpaths: src
plugins: isort-2.0.0, black-0.3.12, mock-3.6.1, pycodestyle-2.2.0, mypy-0.8.0, flakes-4.0.3, pydocstyle-2.2.0
collected 114 items / 58 deselected / 56 selected

src/blp/__init__.py ..F...                                               [ 10%]
src/blp/blp.py .F....ss....                                              [ 32%]
src/blp/test/__init__.py .....                                           [ 41%]
src/blp/test/test_blp.py .F...............................               [100%]

=================================== FAILURES ===================================
_________________________________ test session _________________________________
mypy exited with status 1.
________________________________ src/blp/blp.py ________________________________
11: error: Library stubs not installed for "pytz" (or incompatible with Python 3.9)
11: note: Hint: "python3 -m pip install types-pytz"
11: note: (or run "mypy --install-types" to install all missing stub packages)
11: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
___________________________ src/blp/test/test_blp.py ___________________________
10: error: Library stubs not installed for "pytz" (or incompatible with Python 3.9)
===================================== mypy =====================================
Found 2 errors in 2 files (checked 4 source files)
=========================== short test summary info ============================
FAILED src/blp/__init__.py::mypy-status
FAILED src/blp/blp.py::mypy
FAILED src/blp/test/test_blp.py::mypy
=========== 3 failed, 51 passed, 2 skipped, 58 deselected in 44.65s ============
Error: Process completed with exit code 1.

https://github.com/matthewgilbert/blp/runs/3311910147

@matthewgilbert matthewgilbert added the bug Something isn't working label Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant