-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Python 3.8.2 doesn't work with mypy linting #1631
Comments
Which version of Mypy are you using? |
❯ mypy --version
mypy 0.790
❯ python --version
Python 3.8.2 |
I bypassed this by using It could be worth documenting for now that one should use a particular python version (instead of "3.7 and above") for now in the |
Yea I think moving away from type comments makes sense. Another task we have is to delete all the old code like |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Expected Behavior
Normal linting checks.
Current Behavior
Errors on type comments and doesn't proceed with rest of lint checking.
`(.venv2) [tw-mbp-davidl feast (master)]$ make lint-python
cd /Users/davidl/workspace/feast/sdk/python; mypy feast/ tests/
feast/client.py:411: error: invalid syntax
Found 1 error in 1 file (checked 109 source files)
make: *** [lint-python] Error 2`
Steps to reproduce
Use Python 3.8.2 and run make lint-python.
Specifications
Possible Solution
Explore alternatives to type comments. Or possibly there's a setting in mypy (or version of mypy) that can work with 3.8.2 better. Maybe type comments are not encouraged in this Python version. Have not investigated.
The text was updated successfully, but these errors were encountered: