PyCQA/pylint
package.__path__ has incorrect type for namespace packages #3663
Optiligence posted onGitHub
<!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this, make sure that the issue doesn't already exist or if it is not closed. Is your issue fixed on the preview release?: pip install pylint astroid --pre -U -->
Steps to reproduce
mkdir package
echo 'import package
package.__path__._path' > test.py
/pylint test.py --errors-only
Current behavior
***** Module test test.py:2:0: E1101: Instance of 'list' has no '_path' member (no-member)
Expected behavior
no error
pylint --version output
pylint 2.5.2 astroid 2.4.1 Python 3.8.2 | packaged by conda-forge | (default, Mar 23 2020, 18:16:37) [GCC 7.3.0]