If you're seeing this error and are using the PyCharm IDE, verify if your venv is marked as 'excluded' in the project directory.
If not, do so and restart and see if the linting is fixed.