Open adamtheturtle opened 7 years ago
Thanks for submitting an issue!
Namespace is populated automagically, we won't be able to infer it by generic mechanisms. To support this we would need astroid.brain hint.
What's the recommended solution to deal with this issue?
@Kilo59 The recommended solution would be to provide a brain tip in astroid for this py
module.
Here's an example for numpy
: https://github.com/PyCQA/astroid/blob/master/astroid/brain/brain_numpy.py#L467. We'd need something similar for py
, which should provide the members that pylint
cannot currently infer due to how py
it's being written. I'm not familiar with py
, so if you have some time to work on a patch, that would be amazing.
Steps to reproduce
pip install pylint py
Create a file with the following content:
Run
pylint
on this file.Current behavior
no-name-in-module
error is given.import-error
is given.Expected behavior
No error is given - this file works in Python.
pylint --version output